This commit is contained in:
samuel desharnais 2023-11-28 18:44:48 -05:00
parent ff1a4919a7
commit b79c35e0ba

View File

@ -33,13 +33,7 @@ public class RobotContainer {
Accumulateur accumulateur = new Accumulateur(); Accumulateur accumulateur = new Accumulateur();
Force1 Force1 = new Force1(lanceur, accumulateur, null);
Force2 Force2 = new Force2(lanceur, accumulateur, null);
Force3 Force3 = new Force3(lanceur, null, accumulateur);
Force4 Force4 = new Force4(lanceur, null, accumulateur);
Force5 Force5 = new Force5(lanceur, null, accumulateur);
Force6 Force6 = new Force6(lanceur, null, accumulateur);
Force7 Force7 = new Force7(lanceur, null, accumulateur);
ShuffleboardTab dashboard = Shuffleboard.getTab("Dashboard"); ShuffleboardTab dashboard = Shuffleboard.getTab("Dashboard");
ShuffleboardLayout forces = Shuffleboard.getTab("Dashboard") ShuffleboardLayout forces = Shuffleboard.getTab("Dashboard")
.getLayout("limitswitchsgratte", BuiltInLayouts.kList) .getLayout("limitswitchsgratte", BuiltInLayouts.kList)
@ -63,6 +57,13 @@ public class RobotContainer {
} }
private void configureBindings() { private void configureBindings() {
Force1 Force1 = new Force1(lanceur, accumulateur, null);
Force2 Force2 = new Force2(lanceur, accumulateur, null);
Force3 Force3 = new Force3(lanceur, null, accumulateur);
Force4 Force4 = new Force4(lanceur, null, accumulateur);
Force5 Force5 = new Force5(lanceur, null, accumulateur);
Force6 Force6 = new Force6(lanceur, null, accumulateur);
Force7 Force7 = new Force7(lanceur, null, accumulateur);
joystick1.button(7).onTrue(Force1); joystick1.button(7).onTrue(Force1);
joystick1.button(8).onTrue(Force2); joystick1.button(8).onTrue(Force2);
joystick1.button(9).onTrue(Force3); joystick1.button(9).onTrue(Force3);