auto raising ramp test

This commit is contained in:
Jason Cox 2016-02-17 15:28:33 -05:00
parent 9ac893271f
commit 139ae70b1b

View File

@ -119,14 +119,7 @@ private:
//bool rampDoing = false; //bool rampDoing = false;
// This is shit code for testing. Replace it with real code. // This is shit code for testing. Replace it with real code.
if(!ramping && operator_stick.GetRawButton(RAMP_RAISE)) if(operator_stick.GetRawButton(RAMP_LOWER))
{
std::cout << "Raising Ramp.";
//launch_spinny.Set(1);
shooter.RaiseRamp();
ramping =true;
}
else if(!ramping && operator_stick.GetRawButton(RAMP_LOWER))
{ {
std::cout << "Lowering Ramp."; std::cout << "Lowering Ramp.";
//launch_spinny.Set(-1); //launch_spinny.Set(-1);
@ -140,10 +133,12 @@ private:
}*/ }*/
else if(ramping else if(ramping
&& !operator_stick.GetRawButton(RAMP_LOWER) && !operator_stick.GetRawButton(RAMP_LOWER)
&& !operator_stick.GetRawButton(RAMP_RAISE)) && launch_spinny.GetForwardLimitOK())
{
shooter.RaiseRamp();
}
else
{ {
std::cout << "Stopping Ramp.";
shooter.StopRamp();
ramping = false; ramping = false;
} }