Skip to content

Commit

Permalink
Fixed build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFox86 committed Jan 18, 2025
1 parent 4149214 commit ddc7e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/main/java/frc/robot/subsystems/drive/DriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ public DriveSubsystem(SwerveIO io) {
// Use default standard deviations of ±35" and ±52° for vision-derived position data
VecBuilder.fill(
Inches.of(35).in(Meters), Inches.of(35).in(Meters), Degrees.of(52).in(Radians)));

Shuffleboard.getTab("Drive")
.add("Zero Heading", runOnce(this::zeroHeading).ignoringDisable(true));

Shuffleboard.getTab("Drive").add("Field", field);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ void setX() {

// ... and be rotated 45° inward towards the center of the robot, within ±1°
assertEquals(45, drivetrain.getModuleStates()[0].angle.getDegrees(), 1);
assertEquals(135, drivetrain.getModuleStates()[1].angle.getDegrees(), 1);
assertEquals(135, drivetrain.getModuleStates()[2].angle.getDegrees(), 1);
assertEquals(-135, drivetrain.getModuleStates()[3].angle.getDegrees(), 1);
assertEquals(-45, drivetrain.getModuleStates()[1].angle.getDegrees(), 1);
assertEquals(-45, drivetrain.getModuleStates()[2].angle.getDegrees(), 1);
assertEquals(45, drivetrain.getModuleStates()[3].angle.getDegrees(), 1);
}

private void tick() {
Expand Down

0 comments on commit ddc7e10

Please sign in to comment.