Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/constants/TagServoingConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public class TagServoingConstants {
public static final double kCoralStuckAllowence = 0.03;

// Reef
public static final Translation2d kBlueReefPose = new Translation2d(4.489323, 4.0259);
public static final Translation2d kRedReefPose = new Translation2d(13.058902, 4.0259);
public static final Translation2d kBlueReefPose =
new Translation2d(4.489323, 4.0259); // welded: 4.489323, 4.0259, AM: 4.489323, 4.02082
public static final Translation2d kRedReefPose =
new Translation2d(13.058902, 4.0259); // welded: 13.058902, 4.0259, AM: 13.058902, 4.02082
}
17 changes: 17 additions & 0 deletions src/main/java/frc/robot/subsystems/auto/AutoSwitch.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,23 @@ private AutoCommandInterface getAutoCommand(int switchPos) {
ScoringLevel.L2,
new Pose2d(7.1008875, 4.0509, Rotation2d.fromDegrees(180.0)));
}
case 0x18 -> {
return new StealOneAlgeaAutonCommand(
driveSubsystem,
robotStateSubsystem,
algaeSubsystem,
biscuitSubsystem,
coralSubsystem,
elevatorSubsystem,
tagAlignSubsystem,
visionSubsystem,
"startBargeToG",
"GToBarge",
"bargeToOppG",
"OppGToOppBarge",
ScoringLevel.L2,
new Pose2d(7.1, 3.7209, Rotation2d.fromRadians(3.14159)));
}

case 0x20 -> {
return new ProcessorShallowSlowAutonCommand(
Expand Down