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:
parent
fdd3561801
commit
64c22c0699
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ void HHCompressor::CompressorSystemPeriodic(){
|
||||
break;
|
||||
}
|
||||
if(compressor->GetPressureSwitchValue()==1){
|
||||
compressor->Start()
|
||||
compressor->Start();
|
||||
}else{
|
||||
compressor->Stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user