2
0
mirror of https://github.com/team2059/Zaphod synced 2025-01-07 22:14:14 -05:00

Added the optimal preset power/angle combo for the autoSonar thing

This commit is contained in:
Adam Long 2014-10-07 20:30:11 -04:00
parent fdd3561801
commit 64c22c0699
2 changed files with 4 additions and 2 deletions

View File

@ -92,11 +92,13 @@ void HHRobot::Handler(){
targetAngle = 130;
}
if(ControlSystem->rightJoystickValues[DRIVE_FOR_DISTANCE]){
if(sonar->GetInches("FRONTLEFT") >= 40){
targetAngle = 100;
if(sonar->GetInches("FRONTLEFT") >= 45){
DriveRobot(0,-.5);
}
else{
DriveRobot(0,0);
shooter->StartShootingSequence(0.855);
}
}
}

View File

@ -20,7 +20,7 @@ void HHCompressor::CompressorSystemPeriodic(){
break;
}
if(compressor->GetPressureSwitchValue()==1){
compressor->Start()
compressor->Start();
}else{
compressor->Stop();
}