Subversion Repositories NaviCtrl

Rev

Rev 49 | Rev 76 | Go to most recent revision | Show entire file | Ignore 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:
Line 404... Line 404...
404
                                                        logfilestate = LOGFILE_ERROR;
404
                                                        logfilestate = LOGFILE_ERROR;
405
                                                        TimerKmlAddPointDelay = SetDelay(5000);  // try again in 5 sec
405
                                                        TimerKmlAddPointDelay = SetDelay(5000);  // try again in 5 sec
406
                                                }
406
                                                }
407
                                                break;
407
                                                break;
Line 408... Line 408...
408
 
408
 
409
                                        default:
409
                                        default:
410
                                                break;
410
                                                break;
411
                                }
411
                                }
412
                        } // EOF model is flying
412
                        } // EOF model is flying
413
                        else // model is not flying
413
                        else // model is not flying