Skip to content

Commit

Permalink
[Spinal][Servo] fixed bug in a function of toruqe enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Mar 7, 2024
1 parent 2835e21 commit 4afb83a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ void DirectServo::servoTorqueControlCallback(const spinal::ServoTorqueCmd& contr
nh_->logerror("Invalid Servo ID!");
return;
}
if (! s.torque_enable_) {
s.torque_enable_ = (control_msg.torque_enable[i] != 0) ? true : false;
servo_handler_.setTorque(index);
}
s.torque_enable_ = (control_msg.torque_enable[i] != 0) ? true : false;
servo_handler_.setTorque(index);

}
}

Expand Down

0 comments on commit 4afb83a

Please sign in to comment.