Skip to content

Commit 3200840

Browse files
committed
Firmware: Fix motors startup
1 parent 5811e1b commit 3200840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/D11-Firmware/PID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PIDWrapper::PIDWrapper(Fix16& inputpos, Fix16& inputvelo, DCMotor* motor, int in
5050
pid_pos->SetOutputLimits(Fix16(-30.0), Fix16(30.0)); //position pid can only command +/- max_velo
5151
pid_velo->SetOutputLimits(Fix16(-90.0), Fix16(90.0)); //velocity pid can only command +/- 100 PWM duty cycle
5252

53-
run();
53+
stop();
5454

5555
this->motor = motor;
5656
this->motor->pid = this;

0 commit comments

Comments
 (0)