Added check on limit switches to prevent uneccessary motor power setting on the RAMP
This commit is contained in:
parent
1f09e12f2d
commit
4fe84f0017
@ -64,12 +64,14 @@ public:
|
|||||||
|
|
||||||
void LowerRamp()
|
void LowerRamp()
|
||||||
{
|
{
|
||||||
launch_spinny->Set(-1);
|
if(launch_spinny->GetReverseLimitOK())
|
||||||
|
launch_spinny->Set(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RaiseRamp()
|
void RaiseRamp()
|
||||||
{
|
{
|
||||||
launch_spinny->Set(1);
|
if(launch_spinny->GetForwardLimitOK())
|
||||||
|
launch_spinny->Set(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopRamp()
|
void StopRamp()
|
||||||
@ -109,7 +111,7 @@ public:
|
|||||||
shotClock.Start();
|
shotClock.Start();
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
std::cout << "*Goku noises*\n";
|
//std::cout << "*Goku noises*\n";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user