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:
parent
265e3d1ac9
commit
1fd59a0a84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user