Rename current -> torque mode vel limit

This commit is contained in:
Paul Guenette
2021-08-03 21:33:50 -04:00
parent dd44ab3033
commit 759c85c9e1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ bool Controller::update() {
}
// Velocity limiting in current mode
if (config_.control_mode < CONTROL_MODE_VELOCITY_CONTROL && config_.enable_current_mode_vel_limit) {
if (config_.control_mode < CONTROL_MODE_VELOCITY_CONTROL && config_.enable_torque_mode_vel_limit) {
if (!vel_estimate.has_value()) {
set_error(ERROR_INVALID_ESTIMATE);
return false;