[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

@@ -79,3 +79,16 @@ ChassisSpeeds HolonomicDriveController::Calculate(
void HolonomicDriveController::SetEnabled(bool enabled) {
m_enabled = enabled;
}
ProfiledPIDController<units::radian>&
HolonomicDriveController::getThetaController() {
return m_thetaController;
}
PIDController& HolonomicDriveController::getXController() {
return m_xController;
}
PIDController& HolonomicDriveController::getYController() {
return m_yController;
}