mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix bug in RamseteCommand (using degrees instead of radians) (#2020)
This commit is contained in:
committed by
Peter Johnson
parent
c5186d8159
commit
a769f1f227
@@ -71,7 +71,7 @@ public class DriveSubsystem extends SubsystemBase {
|
||||
@Override
|
||||
public void periodic() {
|
||||
// Update the odometry in the periodic block
|
||||
m_odometry.update(new Rotation2d(getHeading()),
|
||||
m_odometry.update(Rotation2d.fromDegrees(getHeading()),
|
||||
new DifferentialDriveWheelSpeeds(
|
||||
m_leftEncoder.getRate(),
|
||||
m_rightEncoder.getRate()
|
||||
|
||||
Reference in New Issue
Block a user