mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] HolonomicDriveController: Add getters for the controllers (#4948)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user