Commit Graph

41 Commits

Author SHA1 Message Date
Peter Barker 7fe183ba0f AP_InternalError: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
2024-12-14 10:06:13 +11:00
Alex Burka 8e399cffbe AP_InternalError: fix signedness issue with snprintf 2024-05-22 23:22:23 +10:00
Peter Barker 94e61a263d AP_InternalError: improve gating of use of AP_InternalError library
- gate calls into library directly on the define
 - INTERNAL_ERROR becomes empty if library not compiled in
2023-08-17 09:16:46 +10:00
David Buzz 81df897d88 AP_InternalError: imu resets aren't fatal on esp32 2023-05-02 14:38:03 +10:00
Peter Barker c7605e11bd AP_InternalError: add waf argument to get consistent builds 2023-02-17 20:48:45 +11:00
Andrew Tridgell bb1b2dafae AP_InternalError: only panic in SITL if debug enabled
a user recently had a flow of control panic in quadplane in
cygwin/missionplanner SITL. The panic this caused means we don't get
logging information on what line of code was triggered

the panic in SITL for internal errors is only useful if you have debug
information and can then attach a debugger. Without debug information
it is much better to behave the same as a real vehicle and report an
internal error (with line number)
2022-10-21 22:14:39 +11:00
Josh Henderson 0ae1536e4a AP_InternalError: change panic to return error code as string in SITL 2021-09-28 09:11:48 +10:00
Peter Barker ce4ca0ac08 AP_InternalError: specify size for error_t 2021-06-13 08:41:25 +10:00
Randy Mackay 67f2c79717 AP_InternalError: added invalid_arguments failure
this is intended to catch problems where we have unexpectedly received
invalid arguments.  For example an out-of-bounds target speed that
should have been caught somewhere else.

running out of bits so we use a single bit to capture invalid inputs to or output from a calculation
2021-04-03 12:07:59 +09:00
Andrew Tridgell f250c4d684 AP_InertialSensor: added an internal error for panic
ensure users cannot arm while in a panic
2021-02-24 18:18:37 +11:00
Andrew Tridgell 9e15efcbb5 AP_InertialSensor: added params restored internal error 2021-01-16 06:47:10 +11:00
Andy Piper c8b2f11ab6 AP_InternalError: add dma_fail 2020-12-30 19:14:16 +11:00
Andrew Tridgell cc61e05d90 AP_InternalError: added mem_guard internal error 2020-11-18 17:14:43 +11:00
Andrew Tridgell 965af98f4a AP_InternalError: added an internal error for GPIO ISR overload 2020-10-02 09:38:24 +10:00
Andrew Tridgell b20279e452 AP_InternalError: added imu_reset error 2020-09-02 06:42:44 +10:00
Peter Barker 4527321035 AP_InternalError: remove leading comma in descriptive string
"i" just looks so likely....
2020-08-07 10:58:00 +10:00
Andrew Tridgell 369861e4c0 AP_InternalError: use strncpy_noterm 2020-07-10 13:32:24 +10:00
Peter Barker 446dc61979 AP_InternalError: add warning on the internal error_t type 2020-05-06 13:23:15 +10:00
Peter Barker 70a9abfaff AP_InternalError: emit stringification of internal errors 2020-05-06 13:23:15 +10:00
Peter Barker a30cdabb34 AP_InternalError: create and use INTERNAL_ERROR macro so we get line numbers 2020-04-30 13:21:36 +10:00
Andrew Tridgell 7d6e5fa8a5 AP_InternalError: implement AP_stack_overflow() C binding
allow low level HAL code to report a stack overflow to
AP_InternalError
2020-04-29 07:36:55 +10:00
Mark Whitehorn b658a84124 AP_InternalError: add error type bad_rotation 2020-04-28 10:52:21 +10:00
Peter Barker ede87d49f6 AP_InternalError: add a bit for infinite recursion in switch_full_sector 2020-04-12 09:43:13 +10:00
Andrew Tridgell 8b9928aaca AP_InternalError: added hex and decimal comments
makes looking up codes faster from logs
2019-12-09 12:43:39 +11:00
Peter Barker f090f35afa AP_InternalError: add a general should-not-be-here bit 2019-09-28 07:58:48 +09:00
Andrew Tridgell b8602abdeb AP_InternalError: added error for i2c isr error 2019-08-25 17:12:16 +10:00
Peter Barker cee3d8086b AP_InternalError: move include of BoardConfig to cpp
This breaks an include loop when building for skyviper-v2450
2019-07-04 13:57:40 +10:00
Peter Barker 54ba686855 AP_InternalError: add bit for asking for a non-existant gcs backend 2019-06-27 07:54:45 +10:00
Peter Barker 256b6703f1 AP_InternalError: keep count of number of errors having occured 2019-06-12 10:05:59 +10:00
Andrew Tridgell 045bdf3478 AP_InternalError: removed unused internal error 2019-06-06 16:35:22 +10:00
Peter Barker fc71e1ba53 AP_InternalError: add internal error for out-of-range bitmask ops 2019-05-28 09:43:17 +10:00
Peter Barker aaf98f942f AP_InternalError: add internal error for link errors in mission protocol 2019-05-22 08:53:45 +10:00
Andrew Tridgell b217771dbf AP_InternalError: persist internal error values 2019-05-15 15:33:48 +10:00
Andrew Tridgell ebf04e70fe AP_InternalError: don't panic on SITL watchdog_reset 2019-05-15 15:33:48 +10:00
Andrew Tridgell 8e1f100d98 AP_InternalError: added spi timeout error 2019-04-30 10:16:38 +10:00
Andrew Tridgell 945ab652cc AP_InternalError: added iomcu_reset as separate code 2019-04-28 07:45:33 +10:00
Andrew Tridgell dbe9e30edc AP_InternalError: added iomcu_reset critical error 2019-04-22 16:53:35 +10:00
Andrew Tridgell d5c2b77573 AP_InternalError: added bit for watchdog reset 2019-04-22 16:53:35 +10:00
Peter Barker 0b44525bda AP_InternalError: correct cast in debug statement 2019-04-19 08:44:41 +09:00
Peter Barker 5c6c153467 AP_InternalError: make constraining NaNs an internal error 2019-04-09 10:18:43 +10:00
Peter Barker 2e885739e3 AP_InternalError: add singleton for tracking internal errors 2019-03-21 21:34:33 +11:00