Rev 226 | Rev 228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 226 | Rev 227 | ||
---|---|---|---|
Line 302... | Line 302... | ||
302 | if(FC.Flags & FCFLAG_FLY) NaviData.FlyingTime++; // we want to count the battery-time |
302 | if(FC.Flags & FCFLAG_FLY) NaviData.FlyingTime++; // we want to count the battery-time |
303 | // else NaviData.FlyingTime = 0; // not the time per flight |
303 | // else NaviData.FlyingTime = 0; // not the time per flight |
304 | if(SerialLinkOkay) SerialLinkOkay--; |
304 | if(SerialLinkOkay) SerialLinkOkay--; |
305 | if(SerialLinkOkay < 250 - 5) NCFlags |= NC_FLAG_NOSERIALLINK; // 5 seconds timeout for serial communication |
305 | if(SerialLinkOkay < 250 - 5) NCFlags |= NC_FLAG_NOSERIALLINK; // 5 seconds timeout for serial communication |
306 | else NCFlags &= ~NC_FLAG_NOSERIALLINK; |
306 | else NCFlags &= ~NC_FLAG_NOSERIALLINK; |
307 | if(StopNavigation && (Parameter.NaviGpsModeControl >= 50)) BeepTime = 500; |
307 | if(StopNavigation && (Parameter.NaviGpsModeControl >= 50)) BeepTime = 500; |
308 | } |
308 | } |
309 | // ---------------- Logging --------------------------------------- |
309 | // ---------------- Logging --------------------------------------- |
310 | Logging_Update(); // could be block some time for at max. 2 seconds, therefore move time critical part of the mainloop into the ISR of timer 1 |
310 | Logging_Update(); // could be block some time for at max. 2 seconds, therefore move time critical part of the mainloop into the ISR of timer 1 |
311 | } |
311 | } |
312 | } |
312 | } |