560,6 → 560,7 |
|
GPS_Init(); |
|
|
#ifdef FOLLOW_ME |
TransmitAlsoToFC = 1; |
UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++"); |
574,6 → 575,7 |
LED_RED_ON; |
} |
#endif |
|
// ---------- Prepare the isr driven |
// set to absolute lowest priority |
VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW); |
587,8 → 589,11 |
LED_RED_OFF; |
Settings_GetParamValue(PID_SEND_NMEA, &NMEA_Interval); |
UART1_PutString("\r\n"); |
|
CompassValueErrorCount = 0; |
I2CBus(Compass_I2CPort)->Timeout = SetDelay(3000); |
|
// ++++++++++++++++++++++++++++++++++++++++++++++ |
for (;;) // the endless main loop |
{ |
PollingTimeout = 5; |