This commit is contained in:
Antoine PerreaultE 2023-03-07 17:56:37 -05:00
parent 337199e19c
commit 8c1eb669ab

View File

@ -61,9 +61,8 @@ public void BrakeFerme(){
brakegauche.set(Value.kReverse); brakegauche.set(Value.kReverse);
} }
public void resetGyro(){ public void resetGyro(){
try {gyroscope.reset();} catch(Exception e){DriverStation.reportError("bye bye",true); {gyroscope.reset();}
} }
}
/** Creates a new BasePilotable. */ /** Creates a new BasePilotable. */
public BasePilotable() { public BasePilotable() {
droit.setInverted(true); droit.setInverted(true);