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
gps.cpp@139:b378528c05f2, 2021-12-06 (annotated)
- Committer:
- cocorlow
- Date:
- Mon Dec 06 08:26:16 2021 +0000
- Revision:
- 139:b378528c05f2
- Parent:
- 106:2d854e92cebb
- Child:
- 141:725321fe2949
Eigen
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cocorlow | 139:b378528c05f2 | 1 | //#include "global.hpp" |
cocorlow | 139:b378528c05f2 | 2 | // |
cocorlow | 139:b378528c05f2 | 3 | //void getGPSval() |
cocorlow | 139:b378528c05f2 | 4 | //{ |
cocorlow | 139:b378528c05f2 | 5 | // gpsUpdateFlag = false; |
cocorlow | 139:b378528c05f2 | 6 | // gps.Update(); |
cocorlow | 139:b378528c05f2 | 7 | // if (gps.iTOW_STATUS != itow_status){ |
cocorlow | 139:b378528c05f2 | 8 | // itow_status = gps.iTOW_STATUS; |
cocorlow | 139:b378528c05f2 | 9 | // if(gps.gpsFix == 0x02 || gps.gpsFix == 0x03){ |
cocorlow | 139:b378528c05f2 | 10 | // vi.x = gps.VelocityNED.x; |
cocorlow | 139:b378528c05f2 | 11 | // vi.y = gps.VelocityNED.y; |
cocorlow | 139:b378528c05f2 | 12 | // vi.z = gps.VelocityNED.z; |
cocorlow | 139:b378528c05f2 | 13 | // if(gpsLlh0Fixed == false){ |
cocorlow | 139:b378528c05f2 | 14 | // gps.CalculateUnit(); |
cocorlow | 139:b378528c05f2 | 15 | // gpsLlh0Fixed = true; |
cocorlow | 139:b378528c05f2 | 16 | // }else{ |
cocorlow | 139:b378528c05f2 | 17 | // gps.Calculate(); |
cocorlow | 139:b378528c05f2 | 18 | // } |
cocorlow | 139:b378528c05f2 | 19 | // pi.x = gps.PositionNED.x; |
cocorlow | 139:b378528c05f2 | 20 | // pi.y = gps.PositionNED.y; |
cocorlow | 139:b378528c05f2 | 21 | // pi.z = gps.PositionNED.z; |
cocorlow | 139:b378528c05f2 | 22 | // gpsUpdateFlag = true; |
cocorlow | 139:b378528c05f2 | 23 | // } |
cocorlow | 139:b378528c05f2 | 24 | // } |
cocorlow | 139:b378528c05f2 | 25 | //} |
cocorlow | 139:b378528c05f2 | 26 | // |