[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

@@ -8,7 +8,7 @@
// For more information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
ReplaceMePIDCommand::ReplaceMePIDCommand()
: CommandHelper{frc2::PIDController{0, 0, 0},
: CommandHelper{frc::PIDController{0, 0, 0},
// This should return the measurement
[] { return 0; },
// This should return the setpoint (can also be a constant)

View File

@@ -6,7 +6,7 @@
ReplaceMePIDSubsystem2::ReplaceMePIDSubsystem2()
// The PIDController used by the subsystem
: PIDSubsystem{frc2::PIDController{0, 0, 0}} {}
: PIDSubsystem{frc::PIDController{0, 0, 0}} {}
void ReplaceMePIDSubsystem2::UseOutput(double output, double setpoint) {
// Use the output here