Skip to content

Commit

Permalink
Change everything back to home values
Browse files Browse the repository at this point in the history
  • Loading branch information
simonstoryparker committed Nov 8, 2024
1 parent 899637d commit ecd7bfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/config/CompConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class CompConfig {
tyToNoteDistance.put(11.85, Units.inchesToMeters(17.75 + 7 + 60.1));
tyToNoteDistance.put(15.25, Units.inchesToMeters(17.75 + 7 + 88.9));
},
InterpolatedVisionDataset.BELLARMINE),
InterpolatedVisionDataset.HOME),
new PerfToggles(true, false, false));

private CompConfig() {}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/config/RobotConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public record PerfToggles(
public static final boolean IS_DEVELOPMENT = true;

// TODO: Change this to false when not using home practice field
public static final boolean IS_HOME = false;
public static final boolean IS_HOME = true;

private static final String PRACTICE_BOT_SERIAL_NUMBER = "0322443D";
public static final String SERIAL_NUMBER = System.getenv("serialnum");
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/note_map_manager/AutoNoteStaged.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public static Translation2d noteIdToTranslation(int noteId) {

// TODO: MAKE X 8.271 FOR REAL FIELDS
case 4:
return new Translation2d(8.271, 7.458);
return new Translation2d(9.0, 7.458);
case 5:
return new Translation2d(8.271, 5.782);
return new Translation2d(9.0, 5.782);
case 6:
return new Translation2d(8.271, 4.106);
return new Translation2d(9.0, 4.106);
case 7:
return new Translation2d(8.271, 2.429);
return new Translation2d(9.0, 2.429);
case 8:
return new Translation2d(8.271, 0.753);
return new Translation2d(9.0, 0.753);
default:
throw new IllegalArgumentException("Expected a note ID from between 1 and 8");
}
Expand Down

0 comments on commit ecd7bfd

Please sign in to comment.