[wpimath] HolonomicDriveController: Add getters for the controllers (#4948)

This commit is contained in:
Oliver W
2023-01-17 03:33:15 +11:00
committed by GitHub
parent a7b1ab683d
commit a8c465f3fb
3 changed files with 55 additions and 0 deletions

View File

@@ -103,6 +103,21 @@ class WPILIB_DLLEXPORT HolonomicDriveController {
*/
void SetEnabled(bool enabled);
/**
* Returns the rotation ProfiledPIDController
*/
ProfiledPIDController<units::radian>& getThetaController();
/**
* Returns the X PIDController
*/
PIDController& getXController();
/**
* Returns the Y PIDController
*/
PIDController& getYController();
private:
Pose2d m_poseError;
Rotation2d m_rotationError;