From d171b3c8d2a744ccc200012dc1f136528043e31b Mon Sep 17 00:00:00 2001 From: Aidan Ferguson Date: Wed, 10 Feb 2016 19:55:20 -0500 Subject: [PATCH] placeholder for encoder code in Shooter.h --- src/Shooter.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/Shooter.h b/src/Shooter.h index 7d7d618..83edd21 100644 --- a/src/Shooter.h +++ b/src/Shooter.h @@ -70,13 +70,25 @@ public: // Move the Ramp to the set position. switch (state) { - case Shoot: - if (ramp->GetForwardLimitOK()) + case Shoot: { - ramp->Set(1); - } else + if (ramp->GetForwardLimitOK()) + { + ramp->Set(1); + } else + { + ramp->Set(0); + } + } + case Half: { - ramp->Set(0); + //yeah, put something here when you get the encoder working. + std::cout << "Hey! Didja install an encoder? Because this is placeholder that Aidan would have removed if you had installed one and told him about it.\n"; + } + case Down: + { + //see half. + std::cout << "Hey! Didja install an encoder? Because this is placeholder that Aidan would have removed if you had installed one and told him about it.\n"; } } }