NEURoboticsClub / Space-Drone-Embedded

Embedded firmware for the Space Building Drone project.
GNU General Public License v3.0
0 stars 0 forks source link

[State] Add a Fault Handler #3

Open jr1221 opened 6 months ago

jr1221 commented 6 months ago

Add an RTOS queue for faulting.

Have it take in the fault code (an enum) and severity level. (1 is highest thru 5).

Have a monitor handle that fault with a switch statement based on severity which will print the fault.

jr1221 commented 6 months ago

Also handle faults from this abort actions: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/error-handling.html