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:
@@ -24,7 +24,7 @@ frc::MecanumDriveWheelPositions Drivetrain::GetCurrentDistances() const {
|
||||
|
||||
void Drivetrain::SetSpeeds(const frc::MecanumDriveWheelSpeeds& wheelSpeeds) {
|
||||
std::function<void(units::meters_per_second_t, const frc::Encoder&,
|
||||
frc2::PIDController&, frc::PWMSparkMax&)>
|
||||
frc::PIDController&, frc::PWMSparkMax&)>
|
||||
calcAndSetSpeeds = [&m_feedforward = m_feedforward](
|
||||
units::meters_per_second_t speed,
|
||||
const auto& encoder, auto& controller,
|
||||
|
||||
@@ -59,10 +59,10 @@ class Drivetrain {
|
||||
frc::Translation2d m_backLeftLocation{-0.381_m, 0.381_m};
|
||||
frc::Translation2d m_backRightLocation{-0.381_m, -0.381_m};
|
||||
|
||||
frc2::PIDController m_frontLeftPIDController{1.0, 0.0, 0.0};
|
||||
frc2::PIDController m_frontRightPIDController{1.0, 0.0, 0.0};
|
||||
frc2::PIDController m_backLeftPIDController{1.0, 0.0, 0.0};
|
||||
frc2::PIDController m_backRightPIDController{1.0, 0.0, 0.0};
|
||||
frc::PIDController m_frontLeftPIDController{1.0, 0.0, 0.0};
|
||||
frc::PIDController m_frontRightPIDController{1.0, 0.0, 0.0};
|
||||
frc::PIDController m_backLeftPIDController{1.0, 0.0, 0.0};
|
||||
frc::PIDController m_backRightPIDController{1.0, 0.0, 0.0};
|
||||
|
||||
frc::AnalogGyro m_gyro{0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user