ebelski / rust-copter

A quadcopter build using a Teensy running Rust and some other cool stuff that's yet to be determined.
MIT License
6 stars 1 forks source link

Proper panic #48

Closed mciantyre closed 3 years ago

mciantyre commented 3 years ago

Turn "log an error, then loop forever" behaviors into actual panics!. A panic indicates an unrecoverable error. Panicking is useful in demos, where we want to catch programming errors. However, we'll need to be careful with panicking in final system.

When a panic happens, we emit an error-level log message, then blink SOS in morse code on the LED. If you ever see that LED pattern, something is wrong. See the teensy4-panic docs for more information.