Skip to content

Commit

Permalink
hardware detect working
Browse files Browse the repository at this point in the history
  • Loading branch information
LTeixeira4909 committed Jan 11, 2025
1 parent 511ed8b commit d58c21f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ private void configureBindings() {

// Run SysId routines when holding back/start and X/Y.
// Note that each routine should be run exactly once in a single log.
joystick.back().and(joystick.y()).whileTrue(drivetrain.sysIdDynamic(Direction.kForward));
joystick.back().and(joystick.x()).whileTrue(drivetrain.sysIdDynamic(Direction.kReverse));
joystick.start().and(joystick.y()).whileTrue(drivetrain.sysIdQuasistatic(Direction.kForward));
joystick.start().and(joystick.x()).whileTrue(drivetrain.sysIdQuasistatic(Direction.kReverse));
// joystick.back().and(joystick.y()).whileTrue(drivetrain.sysIdDynamic(Direction.kForward));
// joystick.back().and(joystick.x()).whileTrue(drivetrain.sysIdDynamic(Direction.kReverse));
// joystick.start().and(joystick.y()).whileTrue(drivetrain.sysIdQuasistatic(Direction.kForward));
// joystick.start().and(joystick.x()).whileTrue(drivetrain.sysIdQuasistatic(Direction.kReverse));

// reset the field-centric heading on left bumper press
joystick.leftBumper().onTrue(drivetrain.runOnce(() -> drivetrain.seedFieldCentric()));
joystick.start().onTrue(drivetrain.runOnce(() -> drivetrain.seedFieldCentric()));

drivetrain.registerTelemetry(logger::telemeterize);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/generated/TunerConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public class TunerConstants {
private static final Distance kWheelRadius = Inches.of(2);

private static final boolean kInvertLeftSide = false;
private static final boolean kInvertRightSide = true;
private static final boolean kInvertRightSide = false;

private static final int kPigeonId = 20;

Expand Down

0 comments on commit d58c21f

Please sign in to comment.