Skip to content

feat(dephy): Added torque_constant parameter to DephyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script#523

Open
VarunSatyadevShetty wants to merge 3 commits into
mainfrom
actuator_torque_constant_feature
Open

feat(dephy): Added torque_constant parameter to DephyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script#523
VarunSatyadevShetty wants to merge 3 commits into
mainfrom
actuator_torque_constant_feature

Conversation

@VarunSatyadevShetty

@VarunSatyadevShetty VarunSatyadevShetty commented May 5, 2026

Copy link
Copy Markdown
Member

This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script. Additionally, it raises value error (also logs warning) when torque_constant is outside the range (0.08, 2.5), since low values cause the motor to draw more current for the same torque.

I have tested it on the Knee+Ankle OSL setup!

VarunSatyadevShetty and others added 2 commits May 5, 2026 19:20
…hyLegacyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script. Also changed the default torque constant from 0.1133 Nm/A to 0.145 Nm/A to match the torque constant of the new motor. Additionally logs a warning and raises error when torque_constant is below 0.08, since low values cause the motor to draw more current for the same torque.
@VarunSatyadevShetty VarunSatyadevShetty changed the title feat(dephy): added torque_constant parameter to DephyActuator and changes the default motor torque constant from 0.113 Nm/A to 0.145 Nm/A feat(dephy): added torque_constant parameter to DephyActuator and changed the default motor torque constant from 0.113 Nm/A to 0.145 Nm/A May 5, 2026
@VarunSatyadevShetty VarunSatyadevShetty changed the title feat(dephy): added torque_constant parameter to DephyActuator and changed the default motor torque constant from 0.113 Nm/A to 0.145 Nm/A feat(dephy): added torque_constant parameter to DephyActuator and changed the default motor torque constant from 0.1133 Nm/A to 0.145 Nm/A May 5, 2026
…hyLegacyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script. Additionally logs a warning and raises error when torque_constant is outside the range (0.08,0.25), since low values cause the motor to draw more current for the same torque.
@VarunSatyadevShetty VarunSatyadevShetty changed the title feat(dephy): added torque_constant parameter to DephyActuator and changed the default motor torque constant from 0.1133 Nm/A to 0.145 Nm/A feat(dephy): added torque_constant parameter to DephyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script May 6, 2026
@VarunSatyadevShetty VarunSatyadevShetty changed the title feat(dephy): added torque_constant parameter to DephyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script feat(dephy): Added torque_constant parameter to DephyActuator. This allows the users to override the motor torque constant (NM_PER_AMP) when constructing DephyActuator in the control script May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant