mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Bounce Working, needs tuning
This commit is contained in:
@@ -338,7 +338,7 @@ public class Drive extends SubsystemBase {
|
||||
|
||||
public void updateOdometry(boolean reversed){
|
||||
if (reversed){
|
||||
m_odometry.update(Rotation2d.fromDegrees( getHeading()),
|
||||
m_odometry.update(Rotation2d.fromDegrees( -getGyroYaw()-180),
|
||||
-inchesToMeters(getDistanceInches(m_rightFrontMotor)),
|
||||
inchesToMeters(getDistanceInches(m_leftFrontMotor)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user