Rtk.h 734 B

12345678910111213141516171819202122232425262728293031
  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. private:
  19. CMessageQueue* _message;
  20. SensorSocket<CRtkSensor>* _socket;
  21. long long _curTick;
  22. bool F_SendDate;
  23. bool _run;
  24. int32_t _count=0;
  25. };