Skip to content

Commit

Permalink
Intake setpoint calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekChen1 committed Nov 10, 2023
1 parent bd079c1 commit ad8b70f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ public static final class Ports {
public static final class Setpoints {
public static final ElevatorState STOWED =
new ElevatorState(MIN_EXTENSION_INCHES, MIN_ANGLE_DEGREES);
public static final ElevatorState SHELF_INTAKE_CONE = new ElevatorState(20, 20);
public static final ElevatorState SHELF_INTAKE_CUBE = new ElevatorState(20, 20);
public static final ElevatorState SHELF_INTAKE_CONE = new ElevatorState(47.3, 68.5);
public static final ElevatorState SHELF_INTAKE_CUBE = new ElevatorState(43.2, 68.5);
public static final ElevatorState GROUND_INTAKE_CONE =
new ElevatorState(MIN_EXTENSION_INCHES, 75);
public static final ElevatorState GROUND_INTAKE_CUBE =
new ElevatorState(MIN_EXTENSION_INCHES, 90);
new ElevatorState(MIN_EXTENSION_INCHES, 81.4);
public static final ElevatorState SCORE_HIGH_CONE = new ElevatorState(43, 52.5);
public static final ElevatorState SCORE_HIGH_CUBE = new ElevatorState(53.8, 74.5);
public static final ElevatorState SCORE_MID_CONE = new ElevatorState(22.5, 35.5);
Expand Down Expand Up @@ -267,7 +267,7 @@ public static final class Ports {
NodeType.CONE.atHeight(Height.HIGH),
List.of(
new ScoreStep(Elevator.Setpoints.SCORE_HIGH_CONE).canWaitHere(),
new ScoreStep(Elevator.Setpoints.SCORE_HIGH_CONE, IntakeSubsystem.Modes.OUTTAKE)),
new ScoreStep(new ElevatorState(22.5, 0), IntakeSubsystem.Modes.OUTTAKE)),
NodeType.CONE.atHeight(Height.MID),
List.of(
new ScoreStep(Elevator.Setpoints.SCORE_MID_CONE).canWaitHere(),
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/commands/GroundPickupCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.subsystems.IntakeSubsystem.Modes;
import java.util.function.BooleanSupplier;
import java.util.function.Supplier;

// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
Expand Down

0 comments on commit ad8b70f

Please sign in to comment.