Skip to content

Commit

Permalink
Disable torque control - test open loop + friction comp
Browse files Browse the repository at this point in the history
  • Loading branch information
ergocub committed Jun 24, 2024
1 parent bb1d809 commit 089ff16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ void JointTorqueControlDevice::computeDesiredCurrents()
desiredMotorCurrents[j] = (motorTorqueCurrentParameters[j].kp * (desiredJointTorques[j] - measuredJointTorques[j])
+ motorTorqueCurrentParameters[j].kfc * estimatedFrictionTorques[j]) / motorTorqueCurrentParameters[j].kt;

desiredMotorCurrents[j] = (motorTorqueCurrentParameters[j].kp * desiredJointTorques[j]
+ motorTorqueCurrentParameters[j].kfc * estimatedFrictionTorques[j]) / motorTorqueCurrentParameters[j].kt;

desiredMotorCurrents[j] = desiredMotorCurrents[j] / m_gearRatios[j];

desiredMotorCurrents[j] = saturation(desiredMotorCurrents[j],
Expand Down

0 comments on commit 089ff16

Please sign in to comment.