File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,8 @@ void Commander::motor(FOCMotor* motor, char* user_command) {
159
159
printVerbose (F (" curr: " ));
160
160
if (!GET){
161
161
motor->current_limit = value;
162
- // if phase resistance is set, change the voltage limit as well.
163
- if (_isset (motor->phase_resistance )) motor->voltage_limit = value*motor->phase_resistance ;
164
162
// if phase resistance specified or the current control is on set the current limit to the velocity PID
165
- if (_isset (motor->phase_resistance ) || motor->torque_controller != TorqueControlType::voltage ) motor->PID_velocity .limit = value;
163
+ if (_isset (motor->phase_resistance ) || motor->torque_controller != TorqueControlType::voltage ) motor->PID_velocity .limit = value;
166
164
}
167
165
println (motor->current_limit );
168
166
break ;
You can’t perform that action at this time.
0 commit comments