We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ebecf8 commit cb2af4bCopy full SHA for cb2af4b
examples/MKRMotorCarrier/Test/Test.ino
@@ -46,7 +46,7 @@ void setup() {
46
// This way, you can program the motor to reach a certain position or velocity without any further intervention.
47
// The PID can be carefully tuned if a particular profile is needed.
48
pid1.setControlMode(CL_POSITION);
49
- pid1.setGains(25, 0, 3);
+ pid1.setGains(25.0f, 0.0f, 3.0f);
50
pid1.setMaxAcceleration(4000);
51
pid1.setSetpoint(TARGET_POSITION, 5000);
52
}
0 commit comments