Browse Source

AP_InternalError: added imu_reset error

c415-sdk
Andrew Tridgell 5 years ago
parent
commit
b20279e452
  1. 1
      libraries/AP_InternalError/AP_InternalError.cpp
  2. 3
      libraries/AP_InternalError/AP_InternalError.h

1
libraries/AP_InternalError/AP_InternalError.cpp

@ -54,6 +54,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con @@ -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");

3
libraries/AP_InternalError/AP_InternalError.h

@ -61,7 +61,8 @@ public: @@ -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

Loading…
Cancel
Save