This commit is contained in:
Olivier Dubois 2023-12-02 11:33:30 -05:00
commit 0637770e17
2 changed files with 5 additions and 5 deletions

View File

@ -78,7 +78,7 @@ public class RobotContainer {
}
public Command getAutonomousCommand() {
return new SequentialCommandGroup(new Avancer(drive), new Force7(lanceur, force7, accumulateur)
, new Force1(lanceur, accumulateur, force1), new Reculer(drive));
}
}
/* return new SequentialCommandGroup(new Avancer(drive), new Force7(lanceur, force7, accumulateur)
, new Force1(lanceur, accumulateur, force1), new Reculer(drive));*/
return null;}
}

View File

@ -42,7 +42,7 @@ public class Force1 extends CommandBase {
accumulateur.tournearriere();
accumulateur.reaccumuler();
}
if(accumulateur.tournearriere()>-256){
if(accumulateur.tournearriere()<-256){
accumulateur.stop();
}
}}