Legohead259 / OlympianESC-Firmware

Firmware for a novel Micro-ROS based electronic speed controller (ESC)
MIT License
0 stars 0 forks source link

[Feature Request]: RGB LED for Feedback #4

Closed Legohead259 closed 9 months ago

Legohead259 commented 9 months ago

Is your feature request related to a problem? Please describe. There is an RGB status LED on the board. It would be nice to use that for basic communication to the user about motor speed and direction, error states, and other potential cases. Also, pushes the computational effort required by the microcontroller.

Describe the solution you'd like The RGB status LED should blink in accordance with the SparkMax ESC codes.

Operating mode Color/Pattern Graphic
Partial Forward Green/blinking forward-proportional
Full Forward Green/Solid image
Partial Reverse Red/Blinking reverse-proportional
Full Reverse Red/Solid image
Device Identify White/Magenta/Blinking mode-identify
Motor Disabled Orange/Blue/Blinking motor-disabled
Sensor Fault Orange/Magenta/Blinking sensor-fault
Driver Fault Orange/Cyan/Blinking driver-fault
Transport Fault Orange/Yellow/Blinking transport-fault

Question: Should the period of the blinking be proportional to the target speed? (i.e. faster speed = faster blinking)

Describe alternatives you've considered It would also be nice to try and use the ROS logger through the ROS2 agent, but this has not yet been explored with any depth

Legohead259 commented 9 months ago

Here is the proposed state machine LED state machine