Rev 903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 903 | Rev 909 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #include <stdlib.h> |
2 | #include <stdlib.h> |
3 | #include "fc.h" |
3 | #include "fc.h" |
4 | #include "ubx.h" |
4 | #include "ubx.h" |
5 | #include "mymath.h" |
5 | #include "mymath.h" |
6 | #include "timer0.h" |
6 | #include "timer0.h" |
7 | #include "uart.h" |
7 | //#include "uart.h" |
8 | #include "rc.h" |
8 | #include "rc.h" |
9 | #include "eeprom.h" |
9 | #include "eeprom.h" |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | #define TSK_IDLE 0 |
11 | #define TSK_IDLE 0 |
Line 272... | Line 272... | ||
272 | GPSInfo.status = INVALID; |
272 | GPSInfo.status = INVALID; |
273 | } |
273 | } |
274 | break; |
274 | break; |
275 | case VALID: // new valid data from gps device |
275 | case VALID: // new valid data from gps device |
276 | // if the gps data quality is good |
276 | // if the gps data quality is good |
277 | DebugOut.Analog[29] = (int16_t)GPSInfo.updatetime; |
- | |
278 | if (GPSInfo.satfix == SATFIX_3D) |
277 | if (GPSInfo.satfix == SATFIX_3D) |
279 | { |
278 | { |
280 | switch(GPS_Task) // check what's to do |
279 | switch(GPS_Task) // check what's to do |
281 | { |
280 | { |
282 | case TSK_IDLE: |
281 | case TSK_IDLE: |