Subversion Repositories NaviCtrl

Rev

Rev 348 | Rev 351 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 348 Rev 350
Line 78... Line 78...
78
#include "settings.h"
78
#include "settings.h"
79
#include "config.h"
79
#include "config.h"
80
#include "main.h"
80
#include "main.h"
81
#include "debug.h"
81
#include "debug.h"
82
#include "eeprom.h"
82
#include "eeprom.h"
-
 
83
#include "ssc.h"
Line 83... Line 84...
83
 
84
 
84
#ifdef FOLLOW_ME
85
#ifdef FOLLOW_ME
85
u8 TransmitAlsoToFC = 0;
86
u8 TransmitAlsoToFC = 0;
86
#endif
87
#endif
Line 241... Line 242...
241
        {
242
        {
242
                LED_RED_ON;
243
                LED_RED_ON;
243
                sprintf(ErrorMSG,"Mixer Error");
244
                sprintf(ErrorMSG,"Mixer Error");
244
                newErrorCode = 19;
245
                newErrorCode = 19;
245
        }
246
        }
246
        else if(CheckDelay(UBX_Timeout))
247
        else if(CheckDelay(UBX_Timeout) && Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)
247
        {
248
        {
248
                LED_RED_ON;
249
                LED_RED_ON;
249
        if(!(Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)) sprintf(ErrorMSG,"GPS disconnected ");
250
//      if(!(Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)) sprintf(ErrorMSG,"GPS disconnected ");
250
                else
251
//              else 
251
                 {
252
                 {
252
                  sprintf(ErrorMSG,"no GPS communication ");
253
                  sprintf(ErrorMSG,"no GPS communication ");
253
                  UART_VersionInfo.HardwareError[0] |= NC_ERROR0_GPS_RX;
254
                  UART_VersionInfo.HardwareError[0] |= NC_ERROR0_GPS_RX;
254
              newErrorCode = 5;
255
              newErrorCode = 5;
255
                 }
256
                 }
Line 316... Line 317...
316
         LED_RED_ON;
317
         LED_RED_ON;
317
         sprintf(ErrorMSG,"ERR:Waypoint range  ");
318
         sprintf(ErrorMSG,"ERR:Waypoint range  ");
318
         newErrorCode = 25;
319
         newErrorCode = 25;
319
         DebugOut.StatusRed |= AMPEL_NC;
320
         DebugOut.StatusRed |= AMPEL_NC;
320
        }
321
        }
-
 
322
        else if(!SD_SWITCH && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START)
-
 
323
        {
-
 
324
         LED_RED_ON;
-
 
325
         sprintf(ErrorMSG,"ERR:No SD-Card  ");
-
 
326
         newErrorCode = 26;
-
 
327
         DebugOut.StatusRed |= AMPEL_NC;
-
 
328
        }
321
        else // no error occured
329
        else // no error occured
322
        {
330
        {
323
                StopNavigation = 0;
331
                StopNavigation = 0;
324
                LED_RED_OFF;
332
                LED_RED_OFF;
325
                if(no_error_delay) { no_error_delay--;  }
333
                if(no_error_delay) { no_error_delay--;  }