open-dynamic-robot-initiative / master-board

Hardware and Firmware of the Solo Quadruped Master Board
BSD 2-Clause "Simplified" License
119 stars 41 forks source link

Zero-initialise all members of Motor #127

Closed luator closed 1 year ago

luator commented 1 year ago

Description

Prevents random behaviour of the motors if an application does not explicitly set all the control-related values (including kp/kd, etc.) to zero before enabling the motors.

How I Tested

I use this branch to fix an issue of motors of the Bolt robot screeching upon initialisation.

I fulfilled the following requirements

luator commented 1 year ago

@thomasfla I'm merging now as this issue is causing some trouble for us (and likely others as well). Let me know in case there is any problem with the changes, then I'll fix them in a follow-up PR.