vehiclestatus.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef VEHICLESTATUS_H
  2. #define VEHICLESTATUS_H
  3. #include <QtGlobal>
  4. class VehicleStatus
  5. {
  6. public:
  7. VehicleStatus()
  8. {
  9. last_error=0;
  10. map_type=1;
  11. last_map_type=0;
  12. vehicleDistanceInit=0;
  13. controlMode=0;
  14. }
  15. quint8 vehicleID;
  16. qint32 vehicleLat; //lat*10E7
  17. double vehicleLat_float; //lat
  18. qint32 vehicleLon; //lon*10E7
  19. double vehicleLon_float; //lon
  20. qint16 vehicleSpeed; //km/h *10
  21. float vehicleSpeed_float; //km/h
  22. quint16 vehicleAng; //du
  23. qint16 vehicleDistance; //dm
  24. qint16 vehicleProcess;
  25. float vehicleProcess_float;
  26. float last_error;
  27. qint16 vehicleDistanceRel;
  28. quint32 link_update_time;
  29. quint8 link_status;
  30. quint8 map_type;
  31. quint8 last_map_type;
  32. qint16 vehicleDistanceInit; //dm
  33. quint8 controlMode; //0:speed=0;1:processControl;2:distanceControl
  34. quint8 INIT_SPEED=50;
  35. quint8 masterID;
  36. qint8 collision_point;
  37. quint8 status_flag;
  38. qint16 vehicleDesiredSpeed;
  39. };
  40. #endif // VEHICLESTATUS_H