15
15
import edu .wpi .first .wpilibj2 .command .Commands ;
16
16
import io .github .oblarg .oblog .Logger ;
17
17
import org .pikerobodevils .frc2023 .commands .Autos ;
18
- import org .pikerobodevils .frc2023 .commands .Superstructure ;
19
18
import org .pikerobodevils .frc2023 .simulation .ArmSim ;
20
19
import org .pikerobodevils .frc2023 .subsystems .*;
21
20
@@ -56,10 +55,15 @@ public RobotContainer() {
56
55
57
56
autoChooser .setDefaultOption ("No auto" , Commands .none ());
58
57
autoChooser .addOption ("Drive Back" , autos .driveBackAuto ());
59
- autoChooser .addOption ("Mid cube drive back " , autos .scoreMidCubeDriveBack ());
58
+ autoChooser .addOption ("Score low cube only " , autos .scoreLowCube ());
60
59
autoChooser .addOption ("Score mid cube only" , autos .scoreMidCube ());
61
- autoChooser .addOption ("Score high cube" , autos .scoreHighCube ());
62
- autoChooser .addOption ("Score high cube then drive" , autos .scoreHighCubeDriveBack ());
60
+ autoChooser .addOption ("Score high cube only" , autos .scoreHighCube ());
61
+ autoChooser .addOption ("Low cube drive back" , autos .scoreLowCubeDriveBack ());
62
+ autoChooser .addOption ("Mid cube drive back" , autos .scoreMidCubeDriveBack ());
63
+ autoChooser .addOption ("High cube drive back" , autos .scoreHighCubeDriveBack ());
64
+ autoChooser .addOption ("Low cube balance" , autos .scoreLowThenBalance ());
65
+ autoChooser .addOption ("Mid cube balance" , autos .scoreMidThenBalance ());
66
+ autoChooser .addOption ("High cube balance" , autos .scoreHighThenBalance ());
63
67
autoChooser .addOption ("Auto Balance Forwards" , autos .autoBalanceForwards ());
64
68
autoChooser .addOption ("Auto Balance Backwards" , autos .autoBalanceBackwards ());
65
69
@@ -70,13 +74,11 @@ private void configureBindings() {
70
74
controlboard
71
75
.operator
72
76
.x ()
73
- .onTrue (
74
- Commands .runOnce (() -> superstructure .setCurrentState (Superstructure .GamePiece .Cube )));
77
+ .onTrue (Commands .runOnce (() -> superstructure .setGamePiece (Superstructure .GamePiece .Cube )));
75
78
controlboard
76
79
.operator
77
80
.y ()
78
- .onTrue (
79
- Commands .runOnce (() -> superstructure .setCurrentState (Superstructure .GamePiece .Cone )));
81
+ .onTrue (Commands .runOnce (() -> superstructure .setGamePiece (Superstructure .GamePiece .Cone )));
80
82
81
83
controlboard .operator .leftTrigger ().whileTrue (superstructure .runIntake ());
82
84
@@ -87,6 +89,10 @@ private void configureBindings() {
87
89
.operator
88
90
.axisGreaterThan (XboxController .Axis .kLeftY .value , .5 )
89
91
.onTrue (superstructure .floorPickupCube ());
92
+ controlboard
93
+ .operator
94
+ .axisLessThan (XboxController .Axis .kLeftY .value , -.5 )
95
+ .onTrue (superstructure .setStateCommand (Superstructure .SuperstructureState .CUBE_SHOOT ));
90
96
91
97
controlboard .operator .a ().onTrue (superstructure .stowCommand ());
92
98
0 commit comments