[wpimath] Move PIDController from frc2 to frc namespace (#5640)

The old PIDController class in the frc namespace was removed for the
2023 season.
This commit is contained in:
Tyler Veness
2023-09-15 19:57:31 -07:00
committed by GitHub
parent 494cfd78c1
commit 4bac4dd0f4
50 changed files with 189 additions and 193 deletions

View File

@@ -139,7 +139,7 @@ TEST_P(MotorEncoderTest, ClampSpeed) {
TEST_P(MotorEncoderTest, PositionPIDController) {
Reset();
double goal = 1000;
frc2::PIDController pidController(0.001, 0.01, 0.0);
frc::PIDController pidController(0.001, 0.01, 0.0);
pidController.SetTolerance(50.0);
pidController.SetIntegratorRange(-0.2, 0.2);
pidController.SetSetpoint(goal);
@@ -166,7 +166,7 @@ TEST_P(MotorEncoderTest, PositionPIDController) {
TEST_P(MotorEncoderTest, VelocityPIDController) {
Reset();
frc2::PIDController pidController(1e-5, 0.0, 0.0006);
frc::PIDController pidController(1e-5, 0.0, 0.0006);
pidController.SetTolerance(200.0);
pidController.SetSetpoint(600);