outofroad.go 383 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "cicv-data-closedloop/common/entity"
  4. "cicv-data-closedloop/pjisuv_msgs"
  5. )
  6. func Topic() string {
  7. return "/cicv_location"
  8. }
  9. func Label() string {
  10. return "outofroad"
  11. }
  12. func Rule(data *pjisuv_msgs.VehicleFdb, param entity.PjisuvParam) string {
  13. if data.Automode == 0 && param.AutomodeOfPjVehicleFdbPub == 1 {
  14. return "outofroad"
  15. } else {
  16. return ""
  17. }
  18. }