[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

@@ -139,4 +139,31 @@ public class HolonomicDriveController {
public void setEnabled(boolean enabled) {
m_enabled = enabled;
}
/**
* Returns the heading controller.
*
* @return heading ProfiledPIDController
*/
public ProfiledPIDController getThetaController() {
return m_thetaController;
}
/**
* Returns the x controller.
*
* @return X PIDController
*/
public PIDController getXController() {
return m_xController;
}
/**
* Returns the y controller.
*
* @return Y PIDController
*/
public PIDController getYController() {
return m_yController;
}
}