Commit Graph

20 Commits

Author SHA1 Message Date
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
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
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
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
256b6703f1 AP_InternalError: keep count of number of errors having occured 2019-06-12 10:05:59 +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
Peter Barker
0b44525bda AP_InternalError: correct cast in debug statement 2019-04-19 08:44:41 +09:00
Peter Barker
2e885739e3 AP_InternalError: add singleton for tracking internal errors 2019-03-21 21:34:33 +11:00