- Notifications
You must be signed in to change notification settings - Fork0
norlab-ulaval/warthog_lights_arduino
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Arduino code for LED-Personalisation and E-Stop state publishing

The base Clearpath configuration for the LED has been kept, to customize the lights color's the user must publish on thewarthog/platform/cmd_lights topic all three RGB componnents must be published at a minimal rate of 1Hz which is the maximum time interval set for ros in the arduino code see an examplehere . A white balance is also integrated in the arduino code here are the rationsR:0.5G:1B:0.75 to change see user constants on the top of the arduino sketch.
From the LED control wiki page here is the table of behaviors for the led and the order of priority in which they interact with each other. To change the behaviors of different state, the order of priority or add new behaviors modify the placement of the differentelse if blocks in the main loop of the arduino codehere.
Priority ranked LED behavior
| State | Logic trigger | Behavior |
|---|---|---|
| Charging | BMS state 3 | pulsing following soc color gradient |
| Charged | BMS state 8 | steady soc full color |
| Low battery | BMS soc below 30 | blinking rapidly soc empty color |
| E-stop | Estop state low | blinking current soc color |
| ROS | ros message received | solid color determined by user |
| Stand-by | no higher priority behavior | current soc color |
Empty ---------------------------> Full
🟥 🟥 🟧 🟧 🟨 🟨 🟩 🟩 🟩 🟩
About
Arduino code for LED-Personalisation
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors3
Uh oh!
There was an error while loading.Please reload this page.