invert move input

This commit is contained in:
ryan123rudder
2020-02-13 17:11:54 -07:00
parent 9014d00798
commit 328380b9e4
2 changed files with 2 additions and 2 deletions
@@ -38,7 +38,7 @@ public class DriveWithJoystick extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double moveInput = m_controller.getLeftYAxis();
double moveInput = -m_controller.getLeftYAxis();
double steerInput = m_controller.getRightXAxis();
double moveOutput = 0;
double steerOutput = 0;
@@ -46,7 +46,7 @@ public class DriveWithJoystickUsingDeadAssistPID extends CommandBase {
@Override
public void execute() {
double currentGyro = m_drive.m_rightFrontMotor.getSelectedSensorPosition(DriveConstants.PID_TURN);
double moveInput = m_controller.getLeftYAxis();
double moveInput = -m_controller.getLeftYAxis();
double steerInput = m_controller.getRightXAxis();
double moveOutput = 0;
double steerOutput = 0;