Fix bug in RamseteCommand (using degrees instead of radians) (#2020)

This commit is contained in:
Austin Shalit
2019-11-01 16:21:02 -04:00
committed by Peter Johnson
parent c5186d8159
commit a769f1f227

View File

@@ -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()