cvra / robot-software

CVRA monorepo - All software running on our bots lives here
MIT License
43 stars 21 forks source link

Light up a LED if emergency button is pressed #282

Closed antoinealb closed 3 years ago

antoinealb commented 3 years ago

If the emergency shutdown button is depressed, then the battery voltage will be cut to the motor control boards, but they will still be powered by the CAN bus.

This patch reports the battery powerdown from the motor control board as a custom status code. On the master firmware we simply store the status of the boards and report them through a LED.

Needs to be tested on hardware.

antoinealb commented 3 years ago

tested on hw, merging