This commit is contained in:
Antoine PerreaultE 2023-12-02 11:20:25 -05:00
parent f53490a1cd
commit 3e483c1b17
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();
}
}}