2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Fixed shooting

This commit is contained in:
Austen Adler 2014-03-31 22:41:42 -04:00
parent ab224b71f5
commit 5184252863

View File

@ -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);