Rev 112 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 112 | Rev 114 | ||
---|---|---|---|
Line 316... | Line 316... | ||
316 | } |
316 | } |
Line 317... | Line 317... | ||
317 | 317 | ||
318 | // ---------------- Error Check Timing ---------------------------- |
318 | // ---------------- Error Check Timing ---------------------------- |
319 | if(CheckDelay(TimerCheckError)) |
319 | if(CheckDelay(TimerCheckError)) |
- | 320 | { |
|
320 | { |
321 | TimerCheckError = SetDelay(1000); |
321 | if(!CheckSPIOkay) GPS_Navigation(); // process the GPS data even if the FC is not connected |
322 | if(!CheckSPIOkay) GPS_Navigation(); // process the GPS data even if the FC is not connected |
322 | CheckErrors(); |
323 | CheckErrors(); |
323 | if(FC.MKFlags & MKFLAG_FLY) NaviData.FlyingTime++; // we want to count the battery-time |
324 | if(FC.MKFlags & MKFLAG_FLY) NaviData.FlyingTime++; // we want to count the battery-time |
324 | // else NaviData.FlyingTime = 0; |
- | |
325 | TimerCheckError = SetDelay(1000); |
325 | // else NaviData.FlyingTime = 0; |
326 | UART1_Request_SendFollowMe = TRUE; |
326 | UART1_Request_SendFollowMe = TRUE; |
327 | if(SerialLinkOkay) SerialLinkOkay--; |
327 | if(SerialLinkOkay) SerialLinkOkay--; |
328 | if(SerialLinkOkay < 250 - 5) NCFlags |= NC_FLAG_NOSERIALLINK; // 5 seconds timeout for serial communication |
328 | if(SerialLinkOkay < 250 - 5) NCFlags |= NC_FLAG_NOSERIALLINK; // 5 seconds timeout for serial communication |
329 | else NCFlags &= ~NC_FLAG_NOSERIALLINK; |
329 | else NCFlags &= ~NC_FLAG_NOSERIALLINK; |