Code for moving arms... boring
This commit is contained in:
parent
bf184ca305
commit
57fb961f22
@ -222,7 +222,21 @@ private:
|
|||||||
shooter.StopShooter();
|
shooter.StopShooter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!arming && driver_stick.GetRawButton(RAMP_RAISE))
|
||||||
|
{
|
||||||
|
arming = true;
|
||||||
|
arms.Set(1);
|
||||||
|
}
|
||||||
|
else if(!arming && driver_stick.GetRawButton(RAMP_LOWER))
|
||||||
|
{
|
||||||
|
arming = true;
|
||||||
|
arms.Set(-1);
|
||||||
|
}
|
||||||
|
else if(arming && !driver_stick.GetRawButton(RAMP_RAISE) && !driver_stick.GetRawButton(RAMP_LOWER))
|
||||||
|
{
|
||||||
|
arming = false;
|
||||||
|
arms.Set(0);
|
||||||
|
}
|
||||||
|
|
||||||
// This code will become obsolete after the Shooter logic is complete.
|
// This code will become obsolete after the Shooter logic is complete.
|
||||||
float opThrottle = SaneThrottle(operator_stick.GetThrottle());
|
float opThrottle = SaneThrottle(operator_stick.GetThrottle());
|
||||||
|
Reference in New Issue
Block a user