diff --git a/Robot2016/src/Shooter.h b/Robot2016/src/Shooter.h index aeeab87..a8469b7 100644 --- a/Robot2016/src/Shooter.h +++ b/Robot2016/src/Shooter.h @@ -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; + } } }