Rtk.h 856 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "../common/comm.h"
  3. #include "../common/notifier.h"
  4. #include "MqttClient.h"
  5. class CMessageQueue;
  6. class CRtkSensor//:public ISensorNotify
  7. {
  8. public:
  9. CRtkSensor(CMessageQueue* q);
  10. void Notify(int8_t* buffer, int32_t size);
  11. void SetSensorSocket(SensorSocket<CRtkSensor>* udp);
  12. void Start();
  13. void Stop();
  14. void Send_ZGJ_status(int Status);//ץ�ֻ�״̬��Ϣ�ϱ�
  15. private:
  16. void Run();
  17. // void Send_ZGJ_Rtk(float headingAngle, float lat, float lon);//ץ�ֻ�λ����Ϣ�ϱ�
  18. void Send_ZGJ_Rtk(float headingAngle, float lat, float lon,float loc_status);//ץ�ֻ�λ����Ϣ�ϱ�
  19. private:
  20. CMessageQueue* _message;
  21. SensorSocket<CRtkSensor>* _socket;
  22. long long _curTick;
  23. bool F_SendDate;
  24. bool _run;
  25. int32_t _count=0;
  26. };