untested one-touch shooting
This commit is contained in:
parent
139ae70b1b
commit
3584fc4634
@ -202,7 +202,7 @@ private:
|
|||||||
* Every time the method is called. This cannot be a loop in the Shoot method because
|
* Every time the method is called. This cannot be a loop in the Shoot method because
|
||||||
* that would lock the robot every time the trigger is hit.
|
* that would lock the robot every time the trigger is hit.
|
||||||
*/
|
*/
|
||||||
if(operator_stick.GetRawButton(TRIGGER))
|
if(operator_stick.GetRawButton(TRIGGER) || (shooter.GetState() != 0))
|
||||||
{
|
{
|
||||||
shooting = true;
|
shooting = true;
|
||||||
shooter.Shoot();
|
shooter.Shoot();
|
||||||
|
@ -175,6 +175,11 @@ public:
|
|||||||
launcher->Set(power);
|
launcher->Set(power);
|
||||||
//std::cout << "setting shooter power" << std::endl;
|
//std::cout << "setting shooter power" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int GetState()
|
||||||
|
{
|
||||||
|
return state;
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
|
|
||||||
//RobotDrive *shooterDrive;
|
//RobotDrive *shooterDrive;
|
||||||
|
Reference in New Issue
Block a user