mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Report error on negative PID gains (#6055)
Defaults PID gains to zero if any are invalid.
This commit is contained in:
@@ -21,8 +21,7 @@ public class Robot extends TimedRobot {
|
||||
static final double kHoldDistanceMillimeters = 1.0e3;
|
||||
|
||||
// proportional speed constant
|
||||
// negative because applying positive voltage will bring us closer to the target
|
||||
private static final double kP = -0.001;
|
||||
private static final double kP = 0.001;
|
||||
// integral speed constant
|
||||
private static final double kI = 0.0;
|
||||
// derivative speed constant
|
||||
|
||||
Reference in New Issue
Block a user