Skip to content

Commit fe6d4e2

Browse files
committed
Fix setGains() argument in example
1 parent ea3ea2b commit fe6d4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/MKR/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)