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) {
159159 printVerbose (F (" curr: " ));
160160 if (!GET){
161161 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 ;
164162 // 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;
166164 }
167165 println (motor->current_limit );
168166 break ;
You can’t perform that action at this time.
0 commit comments