Rev 350 | Rev 355 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 350 | Rev 351 | ||
---|---|---|---|
Line 218... | Line 218... | ||
218 | { |
218 | { |
219 | LED_RED_ON; |
219 | LED_RED_ON; |
220 | sprintf(ErrorMSG,"ERR:FC Z-ACC"); |
220 | sprintf(ErrorMSG,"ERR:FC Z-ACC"); |
221 | newErrorCode = 15; |
221 | newErrorCode = 15; |
222 | } |
222 | } |
- | 223 | else if(NC_To_FC_Flags & NC_TO_FC_FLYING_RANGE) |
|
- | 224 | { |
|
- | 225 | LED_RED_ON; |
|
- | 226 | sprintf(ErrorMSG,"ERR:Flying range!"); |
|
- | 227 | newErrorCode = 28; |
|
- | 228 | } |
|
223 | else if(FC.Error[0] & FC_ERROR0_PRESSURE) |
229 | else if(FC.Error[0] & FC_ERROR0_PRESSURE) |
224 | { |
230 | { |
225 | LED_RED_ON; |
231 | LED_RED_ON; |
226 | sprintf(ErrorMSG,"ERR:Pressure sensor"); |
232 | sprintf(ErrorMSG,"ERR:Pressure sensor"); |
227 | newErrorCode = 16; |
233 | newErrorCode = 16; |
Line 313... | Line 319... | ||
313 | DebugOut.StatusRed |= AMPEL_BL; |
319 | DebugOut.StatusRed |= AMPEL_BL; |
314 | } |
320 | } |
315 | else if(NCFlags & NC_FLAG_RANGE_LIMIT && (FC.StatusFlags & FC_STATUS_FLY) && !ErrorCode) |
321 | else if(NCFlags & NC_FLAG_RANGE_LIMIT && (FC.StatusFlags & FC_STATUS_FLY) && !ErrorCode) |
316 | { |
322 | { |
317 | LED_RED_ON; |
323 | LED_RED_ON; |
318 | sprintf(ErrorMSG,"ERR:Waypoint range "); |
324 | sprintf(ErrorMSG,"ERR:GPS range "); |
319 | newErrorCode = 25; |
325 | newErrorCode = 25; |
320 | DebugOut.StatusRed |= AMPEL_NC; |
326 | DebugOut.StatusRed |= AMPEL_NC; |
321 | } |
327 | } |
322 | else if(!SD_SWITCH && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START) |
328 | else if(!SD_SWITCH && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START) |
323 | { |
329 | { |
324 | LED_RED_ON; |
330 | LED_RED_ON; |
325 | sprintf(ErrorMSG,"ERR:No SD-Card "); |
331 | sprintf(ErrorMSG,"ERR:No SD-Card "); |
326 | newErrorCode = 26; |
332 | newErrorCode = 26; |
327 | DebugOut.StatusRed |= AMPEL_NC; |
333 | DebugOut.StatusRed |= AMPEL_NC; |
328 | } |
334 | } |
- | 335 | else if(SD_LoggingError && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START) |
|
- | 336 | { |
|
- | 337 | LED_RED_ON; |
|
- | 338 | sprintf(ErrorMSG,"ERR:SD Logging aborted"); |
|
- | 339 | newErrorCode = 27; |
|
- | 340 | DebugOut.StatusRed |= AMPEL_NC; |
|
- | 341 | SD_LoggingError = 0; |
|
- | 342 | } |
|
329 | else // no error occured |
343 | else // no error occured |
330 | { |
344 | { |
331 | StopNavigation = 0; |
345 | StopNavigation = 0; |
332 | LED_RED_OFF; |
346 | LED_RED_OFF; |
333 | if(no_error_delay) { no_error_delay--; } |
347 | if(no_error_delay) { no_error_delay--; } |