1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef FANYAAPI_H
- #define FANYAAPI_H
- #include <vector>
- #include "modulecomm.h"
- namespace fanya {
- struct GPS_INS //惯导数据结构体
- {
- double gps_lat; //纬度
- double gps_lng; //经度
- double ins_heading; //航向
- double speed_y; //纵向速度
- };
- struct MAP_DATA //地图数据结构体
- {
- double gps_lat; //纬度
- double gps_lng; //经度
- double ins_heading; //航向
- };
- }
- class fanyaapi
- {
- public:
- fanyaapi();
- void SetGPS(fanya::GPS_INS xgps);
- void SetMAP(std::vector<fanya::MAP_DATA> xvectorMAP);
- void SetDesiredspeed(double fspeed);
- int GetDecision(double & speed,double & decison, double & wheel);
- private:
- void * mpa, * mpb, * mpc, * mpd;
- };
- #endif // FANYAAPI_H
|