This commit is contained in:
Jason Cox 2016-02-20 16:48:00 -05:00
commit d9142146dc
1 changed files with 17 additions and 0 deletions

View File

@ -65,11 +65,22 @@ public:
void LowerRamp() void LowerRamp()
{ {
launch_spinny->Set(-0.5); launch_spinny->Set(-0.5);
if(launch_spinny->Limits::kReverseLimit){
SmartDashboard::PutNumber("ramp", 2); //going to put a circlar dial to show where the ramp could be
} else {
SmartDashboard::PutNumber("ramp", 1);
}
} }
void RaiseRamp() void RaiseRamp()
{ {
launch_spinny->Set(0.5); launch_spinny->Set(0.5);
if(launch_spinny->Limits::kForwardLimit){
SmartDashboard::PutNumber("ramp", 0); //going to put a circlar dial to show where the ramp could be
} else {
SmartDashboard::PutNumber("ramp", 1);
}
} }
void StopRamp() void StopRamp()
@ -80,6 +91,11 @@ public:
void BoostRamp() void BoostRamp()
{ {
launch_spinny->Set(1); launch_spinny->Set(1);
if(launch_spinny->Limits::kForwardLimit){
SmartDashboard::PutNumber("ramp", 0); //going to put a circlar dial to show where the ramp could be
} else {
SmartDashboard::PutNumber("ramp", 1);
}
} }
void Shoot() void Shoot()
@ -180,6 +196,7 @@ private:
Timer shotClock; Timer shotClock;
bool ready; bool ready;
int fake_position;
}; };
#endif /* SRC_SHOOTER_H_ */ #endif /* SRC_SHOOTER_H_ */