[wpimath] Fix case and order of HolonomicDriveController PID getters (#7342)

This commit is contained in:
Tyler Veness
2024-11-05 08:50:17 -08:00
committed by GitHub
parent 9e8d37c03b
commit 63e623d70b
3 changed files with 54 additions and 17 deletions

View File

@@ -104,19 +104,43 @@ class WPILIB_DLLEXPORT HolonomicDriveController {
void SetEnabled(bool enabled);
/**
* Returns the rotation ProfiledPIDController
* Returns the X PIDController
*
* @deprecated Use GetXController() instead.
*/
[[deprecated("Use GetXController() instead")]]
PIDController& getXController();
/**
* Returns the Y PIDController
*
* @deprecated Use GetYController() instead.
*/
[[deprecated("Use GetYController() instead")]]
PIDController& getYController();
/**
* Returns the rotation ProfiledPIDController
*
* @deprecated Use GetThetaController() instead.
*/
[[deprecated("Use GetThetaController() instead")]]
ProfiledPIDController<units::radian>& getThetaController();
/**
* Returns the X PIDController
*/
PIDController& getXController();
PIDController& GetXController();
/**
* Returns the Y PIDController
*/
PIDController& getYController();
PIDController& GetYController();
/**
* Returns the rotation ProfiledPIDController
*/
ProfiledPIDController<units::radian>& GetThetaController();
private:
Pose2d m_poseError;