mirror of
https://github.com/team2059/Zaphod
synced 2025-01-07 22:14:14 -05:00
Fixed shooting
This commit is contained in:
parent
ab224b71f5
commit
5184252863
@ -539,11 +539,12 @@ public:
|
|||||||
if(Lstick.GetRawButton(1)==1){
|
if(Lstick.GetRawButton(1)==1){
|
||||||
//Shoot{{{
|
//Shoot{{{
|
||||||
shooting=true;
|
shooting=true;
|
||||||
shootRobot(throttle);
|
|
||||||
setMotorValue(6,1,1);
|
setMotorValue(6,1,1);
|
||||||
if(collectorExtended==false){
|
if(collectorExtended==false){
|
||||||
shooting=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()))){
|
if(collectorExtended==true&&(SmartDashboard::GetBoolean("Ignore Pot")||upLimit>=potToDegrees(armPot.GetAverageVoltage()))){
|
||||||
shooting=true;
|
shooting=true;
|
||||||
shootRobot(throttle);
|
shootRobot(throttle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user