AP_InternalError: added imu_reset error

This commit is contained in:
Andrew Tridgell 2020-09-01 15:40:33 +10:00
parent 1488142d88
commit b20279e452
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con
"sfs_recursion", // switch_full_sector_recursion
"bad_rotation",
"stack_ovrflw", // stack_overflow
"imu_reset", // imu_reset
};
static_assert((1U<<(ARRAY_SIZE(error_bit_descriptions))) == uint32_t(AP_InternalError::error_t::__LAST__), "too few descriptions for bits");

View File

@ -61,7 +61,8 @@ public:
switch_full_sector_recursion= (1U << 21), //0x200000 2097152
bad_rotation = (1U << 22), //0x400000 4194304
stack_overflow = (1U << 23), //0x800000 8388608
__LAST__ = (1U << 24), // used only for sanity check
imu_reset = (1U << 24), //0x1000000 16777216
__LAST__ = (1U << 25), // used only for sanity check
};
// if you've changed __LAST__ to be 32, then you will want to