Rev 49 | Rev 76 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 49 | Rev 75 | ||
---|---|---|---|
Line 334... | Line 334... | ||
334 | // ---------------- Error Check Timing ---------------------------- |
334 | // ---------------- Error Check Timing ---------------------------- |
335 | if(CheckDelay(TimerCheckError)) |
335 | if(CheckDelay(TimerCheckError)) |
336 | { |
336 | { |
337 | if(!CheckSPIOkay) GPS_Navigation(); // process the GPS data even if the FC is not connected |
337 | if(!CheckSPIOkay) GPS_Navigation(); // process the GPS data even if the FC is not connected |
338 | CheckErrors(); |
338 | CheckErrors(); |
- | 339 | if(FC.MKFlags & MKFLAG_FLY) NaviData.FlyingTime++; |
|
339 | TimerCheckError = SetDelay(1000); |
340 | TimerCheckError = SetDelay(1000); |
340 | Request_SendFollowMe = TRUE; |
341 | Request_SendFollowMe = TRUE; |
341 | } |
342 | } |
342 | // ---------------- KML Timing ------------------------------------ |
343 | // ---------------- KML Timing ------------------------------------ |
343 | if(CheckDelay(TimerKmlAddPointDelay)) |
344 | if(CheckDelay(TimerKmlAddPointDelay)) |
344 | { |
345 | { |
345 | TimerKmlAddPointDelay = SetDelay(500); // every 500 ms |
346 | TimerKmlAddPointDelay = SetDelay(500); // every 500 ms |
346 | - | ||
347 | if(FC.MKFlags & MKFLAG_FLY) // model is flying |
347 | if(FC.MKFlags & MKFLAG_FLY) // model is flying |
348 | { |
348 | { |
349 | switch(logfilestate) |
349 | switch(logfilestate) |
350 | { |
350 | { |
351 | case LOGFILE_IDLE: |
351 | case LOGFILE_IDLE: |