Rev 2026 | Rev 2044 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2026 | Rev 2039 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | #include "timer0.h" |
58 | #include "timer0.h" |
59 | // for debugging! |
59 | // for debugging! |
60 | #include "uart0.h" |
60 | #include "uart0.h" |
61 | #include "output.h" |
61 | #include "output.h" |
Line 62... | Line 62... | ||
62 | 62 | ||
63 | #ifdef USE_MK3MAG |
63 | #ifdef USE_DIRECT_GPS |
64 | #include "mk3mag.h" |
64 | #include "mk3mag.h" |
Line 65... | Line 65... | ||
65 | #endif |
65 | #endif |
66 | 66 | ||
Line 185... | Line 185... | ||
185 | } |
185 | } |
Line 186... | Line 186... | ||
186 | 186 | ||
187 | #ifndef USE_NAVICTRL |
187 | #ifndef USE_NAVICTRL |
188 | // update compass value if this option is enabled in the settings |
188 | // update compass value if this option is enabled in the settings |
189 | if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE)) { |
189 | if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE)) { |
190 | #ifdef USE_MK3MAG |
190 | #ifdef USE_DIRECT_GPS |
191 | MK3MAG_Update(); // read out mk3mag pwm |
191 | MK3MAG_periodicTask(); // read out mk3mag pwm |
192 | #endif |
192 | #endif |
193 | } |
193 | } |
194 | #endif |
194 | #endif |