mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +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,8 @@
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
PIDSubsystem::PIDSubsystem(PIDController controller, double initialPosition)
|
||||
PIDSubsystem::PIDSubsystem(frc::PIDController controller,
|
||||
double initialPosition)
|
||||
: m_controller{std::move(controller)} {
|
||||
SetSetpoint(initialPosition);
|
||||
AddChild("PID Controller", &m_controller);
|
||||
@@ -42,6 +43,6 @@ bool PIDSubsystem::IsEnabled() {
|
||||
return m_enabled;
|
||||
}
|
||||
|
||||
PIDController& PIDSubsystem::GetController() {
|
||||
frc::PIDController& PIDSubsystem::GetController() {
|
||||
return m_controller;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user