Merge branch 'master' into shooter
# Conflicts: # Robot2016/src/Shooter.h
This commit is contained in:
commit
d6d7a52a6a
@ -64,14 +64,22 @@ public:
|
||||
|
||||
void LowerRamp()
|
||||
{
|
||||
if(ramp->GetReverseLimitOK())
|
||||
ramp->Set(-1);
|
||||
if(ramp->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()
|
||||
{
|
||||
if(ramp->GetForwardLimitOK())
|
||||
ramp->Set(1);
|
||||
if(ramp->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()
|
||||
@ -82,6 +90,11 @@ public:
|
||||
void BoostRamp()
|
||||
{
|
||||
ramp->Set(1);
|
||||
if(ramp->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()
|
||||
@ -151,13 +164,6 @@ public:
|
||||
{
|
||||
pickup->Set((float) (state * PICKUP_POWER));
|
||||
launcher->Set((float) (state * PICKUP_POWER * -1));
|
||||
if (state)
|
||||
{
|
||||
ramp->Set(-1.0);
|
||||
} else
|
||||
{
|
||||
ramp->Set(1);
|
||||
}
|
||||
//std::cout << "picking up!\n";
|
||||
}
|
||||
|
||||
@ -190,6 +196,7 @@ private:
|
||||
|
||||
Timer shotClock;
|
||||
bool ready;
|
||||
int fake_position;
|
||||
};
|
||||
|
||||
#endif /* SRC_SHOOTER_H_ */
|
||||
|
Reference in New Issue
Block a user