Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Commit

Permalink
refactored the JoystickAxis references to match the new core version
Browse files Browse the repository at this point in the history
  • Loading branch information
devsamuelv committed May 6, 2022
1 parent d720db7 commit bf609d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core
18 changes: 9 additions & 9 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ public class RobotContainer {
private final Joystick mainJS = new Joystick(0);

private JoystickAxis x = new JoystickAxis(mainJS, Joystick.Axis.LEFT_X)
.cubeAxis()
.deadband()
.limit(55);
.withAxisCubed()
.withDeadband()
.withLimit(55);

private JoystickAxis y = new JoystickAxis(mainJS, Joystick.Axis.LEFT_Y)
.cubeAxis()
.deadband()
.limit(55);
.withAxisCubed()
.withDeadband()
.withLimit(55);

private JoystickAxis rot = new JoystickAxis(mainJS, Joystick.Axis.RIGHT_X)
.cubeAxis()
.deadband()
.limit(55);
.withAxisCubed()
.withDeadband()
.withLimit(55);

private final PathChooser m_pathChooser = new PathChooser("drivers", 2, 0);

Expand Down

0 comments on commit bf609d0

Please sign in to comment.