Skip to content

Repository files navigation

Controller Binding Sandbox

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.

What to edit

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.

How to run

Terminal

cd controller-sandbox
javac -d out src/main/java/frc/sandbox/*.java
java -cp out frc.sandbox.Main

VS Code / IntelliJ

Open the controller-sandbox folder and run the Main class.

Practice ideas

  1. Make B deploy the intake instead of the right bumper.
  2. Move reset-heading to Y.
  3. Make operator A spin the feeder forward.
  4. Bind the same button twice and see what happens when you press it.

Files (you mostly ignore these)

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

Link to the real team code

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.

About

Practice repo for tinkering with robot coding

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages