auto raising ramp test
This commit is contained in:
parent
4fe84f0017
commit
0f1004bc8b
@ -119,14 +119,7 @@ private:
|
||||
|
||||
//bool rampDoing = false;
|
||||
// This is shit code for testing. Replace it with real code.
|
||||
if(!ramping && operator_stick.GetRawButton(RAMP_RAISE))
|
||||
{
|
||||
std::cout << "Raising Ramp.";
|
||||
//launch_spinny.Set(1);
|
||||
shooter.RaiseRamp();
|
||||
ramping =true;
|
||||
}
|
||||
else if(!ramping && operator_stick.GetRawButton(RAMP_LOWER))
|
||||
if(operator_stick.GetRawButton(RAMP_LOWER))
|
||||
{
|
||||
std::cout << "Lowering Ramp.";
|
||||
//launch_spinny.Set(-1);
|
||||
@ -140,10 +133,12 @@ private:
|
||||
}*/
|
||||
else if(ramping
|
||||
&& !operator_stick.GetRawButton(RAMP_LOWER)
|
||||
&& !operator_stick.GetRawButton(RAMP_RAISE))
|
||||
&& launch_spinny.GetForwardLimitOK())
|
||||
{
|
||||
shooter.RaiseRamp();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Stopping Ramp.";
|
||||
shooter.StopRamp();
|
||||
ramping = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user