Added an 'unjam' method to the shooter
This commit is contained in:
parent
81c3876537
commit
62a93449cb
@ -45,7 +45,7 @@ public:
|
||||
}
|
||||
|
||||
void PickUp(bool state = true) {
|
||||
pickup->Set((float) (state * PICKUP_POWER), false);
|
||||
pickup->Set((float) (state * PICKUP_POWER));
|
||||
}
|
||||
|
||||
void SetRamp(RampState state) {
|
||||
@ -53,6 +53,14 @@ public:
|
||||
// Move the Ramp to the set position.
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to run the pickup backwards if the ball gets jammed somehow...
|
||||
*/
|
||||
void Unjam()
|
||||
{
|
||||
pickup->Set(-1 * PICKUP_POWER);
|
||||
}
|
||||
|
||||
void SetPower(float power) {
|
||||
shooterDrive->TankDrive(power, -power, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user