mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Odometry fixes (but not really)
- Seems to only work on the left motor in low gear...no idea why
This commit is contained in:
@@ -52,8 +52,10 @@ public class DriveWithJoystick extends CommandBase {
|
||||
double deadzone = .2;
|
||||
if (steerInput > 0){
|
||||
steerOutput = -cosMultiplier*Math.cos(1.571*steerInput)+(cosMultiplier+deadzone);
|
||||
} else {
|
||||
} else if (steerInput < 0) {
|
||||
steerOutput = cosMultiplier*Math.cos(1.571*steerInput)-(cosMultiplier+deadzone);
|
||||
} else {
|
||||
steerOutput = 0;
|
||||
}
|
||||
|
||||
m_drive.driveWithInput(moveOutput, steerOutput);
|
||||
|
||||
Reference in New Issue
Block a user