mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[wpimath] PIDController: Update field and method names for error and errorDerivative (#7088)
This commit is contained in:
committed by
GitHub
parent
64e5e6db59
commit
6281ec0810
@@ -36,28 +36,28 @@ class PIDToleranceTest {
|
||||
assertFalse(
|
||||
controller.atSetpoint(),
|
||||
"Error was in tolerance when it should not have been. Error was "
|
||||
+ controller.getPositionError());
|
||||
+ controller.getError());
|
||||
|
||||
controller.calculate(0.0);
|
||||
|
||||
assertFalse(
|
||||
controller.atSetpoint(),
|
||||
"Error was in tolerance when it should not have been. Error was "
|
||||
+ controller.getPositionError());
|
||||
+ controller.getError());
|
||||
|
||||
controller.calculate(kSetpoint + kTolerance / 2);
|
||||
|
||||
assertTrue(
|
||||
controller.atSetpoint(),
|
||||
"Error was not in tolerance when it should have been. Error was "
|
||||
+ controller.getPositionError());
|
||||
+ controller.getError());
|
||||
|
||||
controller.calculate(kSetpoint + 10 * kTolerance);
|
||||
|
||||
assertFalse(
|
||||
controller.atSetpoint(),
|
||||
"Error was in tolerance when it should not have been. Error was "
|
||||
+ controller.getPositionError());
|
||||
+ controller.getError());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user