mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-23 17:13:47 +08:00
Merge remote-tracking branch 'origin/devel' into control-loop-refactor
This commit is contained in:
@@ -168,6 +168,8 @@ Motor::Motor(TIM_HandleTypeDef* timer,
|
||||
* @returns: True on success, false otherwise
|
||||
*/
|
||||
bool Motor::arm(PhaseControlLaw<3>* control_law) {
|
||||
axis_->mechanical_brake_.release();
|
||||
|
||||
CRITICAL_SECTION() {
|
||||
control_law_ = control_law;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user