[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

@@ -78,8 +78,8 @@ frc2::Command* RobotContainer::GetAutonomousCommand() {
m_drive.kDriveKinematics,
frc2::PIDController{AutoConstants::kPXController, 0, 0},
frc2::PIDController{AutoConstants::kPYController, 0, 0}, thetaController,
frc::PIDController{AutoConstants::kPXController, 0, 0},
frc::PIDController{AutoConstants::kPYController, 0, 0}, thetaController,
[this](auto moduleStates) { m_drive.SetModuleStates(moduleStates); },

View File

@@ -50,7 +50,7 @@ class SwerveModule {
bool m_reverseDriveEncoder;
bool m_reverseTurningEncoder;
frc2::PIDController m_drivePIDController{
frc::PIDController m_drivePIDController{
ModuleConstants::kPModuleDriveController, 0, 0};
frc::ProfiledPIDController<units::radians> m_turningPIDController{
ModuleConstants::kPModuleTurningController,