Offline practice code that mirrors how FRC Team 2363 (Triple Helix) wires Xbox buttons to robot actions.
You do not need a robot, WPILib, or their full repo.
Open src/main/java/frc/sandbox/RobotBindings.java
That file has bindDriver() and bindOperator() methods that look like the real team style:
driver.rightBumper().whileTrue(Subsystems.intake.getDeployCommand());
driver.b().onTrue(Subsystems.drive.getResetHeadingCommand());Change the button (.a(), .b(), .x(), .y(), .leftBumper(), .rightBumper()) or the command, then run again.
cd controller-sandbox
javac -d out src/main/java/frc/sandbox/*.java
java -cp out frc.sandbox.MainOpen the controller-sandbox folder and run the Main class.
- Make B deploy the intake instead of the right bumper.
- Move reset-heading to Y.
- Make operator A spin the feeder forward.
- Bind the same button twice and see what happens when you press it.
| File | Role |
|---|---|
RobotBindings.java |
Edit this — button → action wiring |
Main.java |
Runs bindings + simulates presses |
XboxController.java |
Fake Xbox with A/B/X/Y/bumpers |
Trigger.java |
Fake button with .onTrue / .whileTrue |
Subsystems.java |
Fake intake / feeder / drive commands |
Command.java |
Tiny command object |
BindingRegistry.java |
Simulation helper |
The real patterns live in Team 2363’s Rebuilt repo, mainly in Robot.java methods like bindXboxDriver and bindXboxOperator. This sandbox keeps the same shape of the code without the full FRC toolchain.