Skip to content

Commit cb2af4b

Browse files
committed
pid1.setGains() needs float-compiles correctly now
1 parent 5ebecf8 commit cb2af4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/MKRMotorCarrier/Test/Test.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void setup() {
4646
// This way, you can program the motor to reach a certain position or velocity without any further intervention.
4747
// The PID can be carefully tuned if a particular profile is needed.
4848
pid1.setControlMode(CL_POSITION);
49-
pid1.setGains(25, 0, 3);
49+
pid1.setGains(25.0f, 0.0f, 3.0f);
5050
pid1.setMaxAcceleration(4000);
5151
pid1.setSetpoint(TARGET_POSITION, 5000);
5252
}

0 commit comments

Comments
 (0)