mirror of https://github.com/ArduPilot/ardupilot
AP_InertialSensor: added an internal error for panic
ensure users cannot arm while in a panic
This commit is contained in:
parent
7010eae9e8
commit
f250c4d684
|
@ -37,7 +37,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con
|
||||||
"write_mssfmt", // logger_logwrite_missingfmt
|
"write_mssfmt", // logger_logwrite_missingfmt
|
||||||
"many_deletes", // logger_too_many_deletions
|
"many_deletes", // logger_too_many_deletions
|
||||||
"bad_getfile", // logger_bad_getfilename
|
"bad_getfile", // logger_bad_getfilename
|
||||||
"unused1",
|
"panic",
|
||||||
"flush_no_sem", // logger_flushing_without_sem
|
"flush_no_sem", // logger_flushing_without_sem
|
||||||
"bad_curr_blk", // logger_bad_current_block
|
"bad_curr_blk", // logger_bad_current_block
|
||||||
"blkcnt_bad", // logger_blockcount_mismatch
|
"blkcnt_bad", // logger_blockcount_mismatch
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
logger_logwrite_missingfmt = (1U << 2), // 0x00004 4
|
logger_logwrite_missingfmt = (1U << 2), // 0x00004 4
|
||||||
logger_too_many_deletions = (1U << 3), // 0x00008 8
|
logger_too_many_deletions = (1U << 3), // 0x00008 8
|
||||||
logger_bad_getfilename = (1U << 4), // 0x00010 16
|
logger_bad_getfilename = (1U << 4), // 0x00010 16
|
||||||
unused1 = (1U << 5), // 0x00020 32
|
panic = (1U << 5), // 0x00020 32
|
||||||
logger_flushing_without_sem = (1U << 6), // 0x00040 64
|
logger_flushing_without_sem = (1U << 6), // 0x00040 64
|
||||||
logger_bad_current_block = (1U << 7), // 0x00080 128
|
logger_bad_current_block = (1U << 7), // 0x00080 128
|
||||||
logger_blockcount_mismatch = (1U << 8), // 0x00100 256
|
logger_blockcount_mismatch = (1U << 8), // 0x00100 256
|
||||||
|
|
Loading…
Reference in New Issue