2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00

Added reverse drive button

This commit is contained in:
Adam Long 2015-03-20 13:11:23 +00:00
parent 942011dcf5
commit 5dfcbd9c92

View File

@ -18,6 +18,10 @@ void Drive::Execute(){
// y=0;
//}
//X axis, Y axis, Z axis, sensitivity, speed threshold (usually throttle)
if(DentRobot::oi->GetLeftStick()->GetRawButton(11)){
x = -x;
y = -y;
}
DentRobot::drivetrain->DriveMecanum(x, y, z, 0.9);
}
bool Drive::IsFinished(){