added ramp status to the smartdashboard
This commit is contained in:
parent
deb31d3f0a
commit
4755bf7c46
@ -65,11 +65,23 @@ public:
|
||||
void LowerRamp()
|
||||
{
|
||||
launch_spinny->Set(-1);
|
||||
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()
|
||||
{
|
||||
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 StopRamp()
|
||||
@ -80,6 +92,11 @@ public:
|
||||
void BoostRamp()
|
||||
{
|
||||
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()
|
||||
@ -180,6 +197,7 @@ private:
|
||||
|
||||
Timer shotClock;
|
||||
bool ready;
|
||||
int fake_position;
|
||||
};
|
||||
|
||||
#endif /* SRC_SHOOTER_H_ */
|
||||
|
Reference in New Issue
Block a user