zauberzeug / lizard

Domain-specific language to specify behaviour of microcontroller managed hardware
MIT License
15 stars 5 forks source link

ODriveMotor Control Mode Change Not Recognized by Lizard #22

Closed angelom93 closed 5 months ago

angelom93 commented 11 months ago

Issue Description: When the ODriveMotor is shut down, it resets its state, including the CONTROL_MODE. However, this change is not detected by Lizard. As a result, Lizard does not update the state of the ODrive before sending commands.

Expected Behavior: Lizard should recognize the state change of the ODriveMotor, including the CONTROL_MODE, and update the state accordingly before sending any commands.

falkoschindler commented 7 months ago

We just discussed this issue internally and came up with the following plan:

This should correctly handle both cases, when the ODrive has been reset and lost its internal state as well as when the ODrive is in a motor error state.

Johannes-Thiel commented 5 months ago

This will be fixed with the PR #41.