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

Added the shooting and exit part of the auto function

This commit is contained in:
Adam Long 2014-10-11 22:23:14 -04:00
parent 265e3d1ac9
commit 1fd59a0a84

View File

@ -52,6 +52,16 @@ void HHRobot::RunAuto(){
}else{
step = 1;
}
//TODO Pass the shooting power and sonar distance as variables to the RunAuto function
//Shoot at a power
if(step == 1){
shooter->StartShootingSequence(0.78);
}else{
step = 2;
}
if(step == 2){
return;
}
}
//Main function used to handle periodic tasks on the robot