Eigen Revision
Dependencies: mbed LPS25HB_I2C LSM9DS1 PIDcontroller Autopilot_Eigen LoopTicker GPSUBX_UART_Eigen SBUS_without_mainfile MedianFilter Eigen UsaPack solaESKF_Eigen Vector3 CalibrateMagneto FastPWM
Diff: gps.cpp
- Revision:
- 139:b378528c05f2
- Parent:
- 106:2d854e92cebb
- Child:
- 141:725321fe2949
diff -r 4882d71c6a5f -r b378528c05f2 gps.cpp --- a/gps.cpp Wed Dec 01 19:17:36 2021 +0000 +++ b/gps.cpp Mon Dec 06 08:26:16 2021 +0000 @@ -1,26 +1,26 @@ -#include "global.hpp" - -void getGPSval() -{ - gpsUpdateFlag = false; - gps.Update(); - if (gps.iTOW_STATUS != itow_status){ - itow_status = gps.iTOW_STATUS; - if(gps.gpsFix == 0x02 || gps.gpsFix == 0x03){ - vi.x = gps.VelocityNED.x; - vi.y = gps.VelocityNED.y; - vi.z = gps.VelocityNED.z; - if(gpsLlh0Fixed == false){ - gps.CalculateUnit(); - gpsLlh0Fixed = true; - }else{ - gps.Calculate(); - } - pi.x = gps.PositionNED.x; - pi.y = gps.PositionNED.y; - pi.z = gps.PositionNED.z; - gpsUpdateFlag = true; - } - } -} - +//#include "global.hpp" +// +//void getGPSval() +//{ +// gpsUpdateFlag = false; +// gps.Update(); +// if (gps.iTOW_STATUS != itow_status){ +// itow_status = gps.iTOW_STATUS; +// if(gps.gpsFix == 0x02 || gps.gpsFix == 0x03){ +// vi.x = gps.VelocityNED.x; +// vi.y = gps.VelocityNED.y; +// vi.z = gps.VelocityNED.z; +// if(gpsLlh0Fixed == false){ +// gps.CalculateUnit(); +// gpsLlh0Fixed = true; +// }else{ +// gps.Calculate(); +// } +// pi.x = gps.PositionNED.x; +// pi.y = gps.PositionNED.y; +// pi.z = gps.PositionNED.z; +// gpsUpdateFlag = true; +// } +// } +//} +//