mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user