From d9b34cd02af3d7011e5b60c72b8a9a1c948fe4ba Mon Sep 17 00:00:00 2001 From: Adam Long Date: Sat, 28 Feb 2015 08:13:26 +0000 Subject: [PATCH] fixed joystick button for slow speed --- Subsystems/Drivetrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Subsystems/Drivetrain.cpp b/Subsystems/Drivetrain.cpp index c8528ee..488fa49 100644 --- a/Subsystems/Drivetrain.cpp +++ b/Subsystems/Drivetrain.cpp @@ -15,7 +15,7 @@ void Drivetrain::DriveMecanum(float x, float y, float z, float sensitivity, floa double correctY = (sensitivity*(pow(y,3))+(1-sensitivity)*y); double correctX = -(sensitivity*(pow(x,3))+(1-sensitivity)*x); double correctZ = -z *.5; - if (DentRobot::oi->GetRightStick()->GetRawButton(9)){ + if (DentRobot::oi->GetLeftStick()->GetRawButton(9)){ correctY /= SmartDashboard::GetNumber("DriveSpeedReductionThresh"); } rightFront->Set((-correctX + correctY - correctZ));