mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21: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:
@@ -42,7 +42,7 @@ class WPILIB_DLLEXPORT HolonomicDriveController {
|
||||
* angle.
|
||||
*/
|
||||
HolonomicDriveController(
|
||||
frc2::PIDController xController, frc2::PIDController yController,
|
||||
PIDController xController, PIDController yController,
|
||||
ProfiledPIDController<units::radian> thetaController);
|
||||
|
||||
HolonomicDriveController(const HolonomicDriveController&) = default;
|
||||
@@ -124,8 +124,8 @@ class WPILIB_DLLEXPORT HolonomicDriveController {
|
||||
Pose2d m_poseTolerance;
|
||||
bool m_enabled = true;
|
||||
|
||||
frc2::PIDController m_xController;
|
||||
frc2::PIDController m_yController;
|
||||
PIDController m_xController;
|
||||
PIDController m_yController;
|
||||
ProfiledPIDController<units::radian> m_thetaController;
|
||||
|
||||
bool m_firstRun = true;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "units/time.h"
|
||||
|
||||
namespace frc2 {
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
* Implements a PID control loop.
|
||||
@@ -279,10 +279,4 @@ class WPILIB_DLLEXPORT PIDController
|
||||
bool m_haveMeasurement = false;
|
||||
};
|
||||
|
||||
} // namespace frc2
|
||||
|
||||
namespace frc {
|
||||
|
||||
using frc2::PIDController;
|
||||
|
||||
} // namespace frc
|
||||
|
||||
@@ -405,7 +405,7 @@ class ProfiledPIDController
|
||||
}
|
||||
|
||||
private:
|
||||
frc2::PIDController m_controller;
|
||||
PIDController m_controller;
|
||||
Distance_t m_minimumInput{0};
|
||||
Distance_t m_maximumInput{0};
|
||||
typename frc::TrapezoidProfile<Distance>::State m_goal;
|
||||
|
||||
Reference in New Issue
Block a user