mirror of
https://github.com/team2059/Zaphod
synced 2024-12-18 20:12:28 -05:00
Fixed shooting
This commit is contained in:
parent
ab224b71f5
commit
5184252863
@ -539,11 +539,12 @@ public:
|
||||
if(Lstick.GetRawButton(1)==1){
|
||||
//Shoot{{{
|
||||
shooting=true;
|
||||
shootRobot(throttle);
|
||||
setMotorValue(6,1,1);
|
||||
if(collectorExtended==false){
|
||||
shooting=false;
|
||||
}
|
||||
//shootRobot(throttle);
|
||||
//TODO: test this code, we don't know if it works, but if it does not, run this code: ^
|
||||
if(collectorExtended==true&&(SmartDashboard::GetBoolean("Ignore Pot")||upLimit>=potToDegrees(armPot.GetAverageVoltage()))){
|
||||
shooting=true;
|
||||
shootRobot(throttle);
|
||||
|
Loading…
Reference in New Issue
Block a user