mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] Fix HolonomicDriveController atReference() behavior (#3163)
The atReference() method previously used the rotation error between the desired trajectory state and the current pose. This was a bug because we allow teams to use custom rotation setpoints and that wasn't being taken into account.
This commit is contained in:
committed by
GitHub
parent
fe5c2cf4b7
commit
f82aa1d564
@@ -98,6 +98,7 @@ class HolonomicDriveController {
|
||||
|
||||
private:
|
||||
Pose2d m_poseError;
|
||||
Rotation2d m_rotationError;
|
||||
Pose2d m_poseTolerance;
|
||||
bool m_enabled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user