Finished shooter switch.
This commit is contained in:
parent
38eb49a964
commit
5bbbf1717e
@ -96,9 +96,9 @@ public:
|
||||
case READY:
|
||||
{
|
||||
state = SPINNINGUP;
|
||||
launch_spinny->Set(-1);
|
||||
launcher->Set(PICKUP_POWER);
|
||||
pickup->Set(PICKUP_POWER);
|
||||
launch_spinny->Set(0);
|
||||
launcher->Set(LAUNCH_POWER);
|
||||
pickup->Set(LAUNCH_POWER);
|
||||
shotClock.Reset();
|
||||
shotClock.Start();
|
||||
break;
|
||||
@ -118,7 +118,7 @@ public:
|
||||
}
|
||||
case LAUNCH:
|
||||
{
|
||||
launch_spinny->Set(1);
|
||||
launch_spinny->Set(LAUNCH_POWER);
|
||||
state = LAUNCHING;
|
||||
break;
|
||||
}
|
||||
@ -131,6 +131,19 @@ public:
|
||||
}
|
||||
break;
|
||||
}
|
||||
case RESETTING:
|
||||
{
|
||||
launch_spinny->Set(0);
|
||||
launcher->Set(0);
|
||||
pickup->Set(0);
|
||||
state = READY;
|
||||
break;
|
||||
}
|
||||
case ON_FIRE:
|
||||
{
|
||||
std::cout << "Something is wrong with the launch sequence.\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user