Skip to content

Commit

Permalink
found decent trim
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Apr 5, 2024
1 parent 9e92f40 commit 52b3a90
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ public static class Presets {
SHOOTER_DISTANCE_ANGLE.put(3.149, 35.13);
SHOOTER_DISTANCE_ANGLE.put(3.500, 28.27);
SHOOTER_DISTANCE_ANGLE.put(3.807, 33.56);

//SEPARTE

// SHOOTER_DISTANCE_ANGLE.put(1.2522372110383038, 50.09765625);
// SHOOTER_DISTANCE_ANGLE.put(2.110611636332603, 42.97694614955357);
// SHOOTER_DISTANCE_ANGLE.put(2.7223768570130944, 36.741420200892854);
// SHOOTER_DISTANCE_ANGLE.put(3.064532709736735, 35.127999441964285);
};

public static final InterpolatingDoubleTreeMap ELEVATOR_DISTANCE_HEIGHT = new InterpolatingDoubleTreeMap();
Expand All @@ -177,6 +184,12 @@ public static class Presets {
ELEVATOR_DISTANCE_HEIGHT.put(3.149, 0.029);
ELEVATOR_DISTANCE_HEIGHT.put(3.500, 0.010);
ELEVATOR_DISTANCE_HEIGHT.put(3.807, 0.009);

//SEPARATE
// ELEVATOR_DISTANCE_HEIGHT.put(1.2522372110383038, 0.05915625);
// ELEVATOR_DISTANCE_HEIGHT.put(2.110611636332603, 0.027583007812499998);
// ELEVATOR_DISTANCE_HEIGHT.put(2.7223768570130944, 0.0274423828125);
// ELEVATOR_DISTANCE_HEIGHT.put(3.064532709736735, 0.0274541015625);
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ private void configureBindings() {
new FeedActuate(_intakeSubsystem, ActuatorState.OUT, FeedMode.OUTTAKE)
);

_operatorController.povRight().onTrue(_lerpSaver);
_operatorController.povLeft().onTrue(Commands.runOnce(_lerpSaver :: showCode));

// operator bindings
_operatorController.L1().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.SHOOT));
_operatorController.L2().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.AMP));
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/frc/robot/subsystems/SwerveDriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ private boolean updateBotpose() {

// UPDATE BOTPOSE WITH VISION
if (visionBotpose.isPresent()) {
System.out.println("PRESENT");

LimelightHelper.SetRobotOrientation(
Limelights.MAIN,
getHeading().getDegrees(),
Expand Down

0 comments on commit 52b3a90

Please sign in to comment.