File tree Expand file tree Collapse file tree
infinite_sense_core/include Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,9 @@ struct LaserData {
2525
2626struct GPSData {
2727 uint64_t time_stamp_us;
28- uint64_t gps_stamp_us;
29- uint64_t gps_stamp_us_trigger;
28+ uint64_t trigger_time_us;
3029 std::string name;
31- float latitude;
32- float longitude;
30+ std::string data;
3331};
3432
3533enum TriggerDevice {
Original file line number Diff line number Diff line change @@ -37,10 +37,8 @@ inline void ProcessGPSData(const nlohmann::json &data) {
3737 return ;
3838 }
3939 GPSData gps{};
40- gps.latitude = data[" d" ][0 ];
41- gps.longitude = data[" d" ][1 ];
42- gps.gps_stamp_us = data[" d" ][2 ];
43- gps.gps_stamp_us_trigger = data[" d" ][3 ];
40+ gps.data = data[" d" ];
41+ gps.trigger_time_us = data[" pps" ];
4442 gps.time_stamp_us = data[" t" ];
4543 Messenger::GetInstance ().PubStruct (" gps" , &gps, sizeof (gps));
4644};
You can’t perform that action at this time.
0 commit comments