fanyaapi.h 796 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef FANYAAPI_H
  2. #define FANYAAPI_H
  3. #include <vector>
  4. #include "modulecomm.h"
  5. namespace fanya {
  6. struct GPS_INS //惯导数据结构体
  7. {
  8. double gps_lat; //纬度
  9. double gps_lng; //经度
  10. double ins_heading; //航向
  11. double speed_y; //纵向速度
  12. };
  13. struct MAP_DATA //地图数据结构体
  14. {
  15. double gps_lat; //纬度
  16. double gps_lng; //经度
  17. double ins_heading; //航向
  18. };
  19. }
  20. class fanyaapi
  21. {
  22. public:
  23. fanyaapi();
  24. void SetGPS(fanya::GPS_INS xgps);
  25. void SetMAP(std::vector<fanya::MAP_DATA> xvectorMAP);
  26. void SetDesiredspeed(double fspeed);
  27. int GetDecision(double & speed,double & decison, double & wheel);
  28. private:
  29. void * mpa, * mpb, * mpc, * mpd;
  30. };
  31. #endif // FANYAAPI_H