Skip to content

Commit

Permalink
Added Keyboard Rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Modular-Holmes committed Mar 28, 2024
1 parent 36d76c5 commit da467d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file added logs/Log_0e7c454b8b1431fe.wpilog
Binary file not shown.
Binary file added logs/Log_151310b3ab17a7f3.wpilog
Binary file not shown.
1 change: 1 addition & 0 deletions networktables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* constants are needed, to reduce verbosity.
*/
public final class Constants {
public static final Mode currentMode = Mode.REAL;
public static final Mode currentMode = Mode.SIM;

public static enum Mode {
/** Running on a real robot. */
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ private void configureButtonBindings() {
drive,
() -> -controller.getLeftY(),
() -> -controller.getLeftX(),
() -> -controller.getRightX()));
// () -> -controller.getRawAxis(2))); // For KB Rotation
()-> -controller.getRightX()));
controller.x().onTrue(Commands.runOnce(drive::stopWithX, drive));
controller
.b()
Expand Down

0 comments on commit da467d8

Please sign in to comment.