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:
parent
942011dcf5
commit
5dfcbd9c92
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user