Added check on limit switches to prevent uneccessary motor power setting on the RAMP

This commit is contained in:
Jason Cox 2016-02-17 15:22:25 -05:00
parent 1938d4b935
commit 9ac893271f

View File

@ -64,11 +64,13 @@ public:
void LowerRamp() void LowerRamp()
{ {
if(launch_spinny->GetReverseLimitOK())
launch_spinny->Set(-1); launch_spinny->Set(-1);
} }
void RaiseRamp() void RaiseRamp()
{ {
if(launch_spinny->GetForwardLimitOK())
launch_spinny->Set(1); launch_spinny->Set(1);
} }
@ -109,7 +111,7 @@ public:
shotClock.Start(); shotClock.Start();
} else } else
{ {
std::cout << "*Goku noises*\n"; //std::cout << "*Goku noises*\n";
} }
break; break;
} }