Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
import competition.subsystems.pose.PoseSubsystem;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import xbot.common.subsystems.autonomous.AutonomousCommandSelector;

import static edu.wpi.first.units.Units.Seconds;

import javax.inject.Inject;

public class FromCageScoreOneCoralAutoFactory {
Expand Down Expand Up @@ -44,6 +47,8 @@ public BaseAutonomousSequentialCommandGroup create(Pose2d startingLocation,
.alongWith(new InstantCommand(() -> simulator.resetPosition(PoseSubsystem.convertBlueToRedIfNeeded(startingLocation))));
auto.addCommands(initializeStateCommand);

auto.addCommands(new WaitCommand(Seconds.of(1)));

var driveAndScore = driveToFaceAndScoreCommandGroupFact.create(targetReefFace, targetBranch, targetLevel)
.alongWith(
auto.getDriveAndScoreStatusMessageCommand(targetReefFace, targetBranch, targetLevel));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import javax.inject.Inject;
import javax.inject.Provider;

import static edu.wpi.first.units.Units.Seconds;

import edu.wpi.first.wpilibj2.command.WaitCommand;
import xbot.common.subsystems.autonomous.AutonomousCommandSelector;

Expand All @@ -26,6 +28,7 @@ public LeftFourCoralAuto(
Provider<PathDriveToLocationForCoralStationFactory> pathDriveToLocationAndIntakeUntilCollectedProvider) {
super(autoSelector);

this.addCommands(new WaitCommand(Seconds.of(1)));

// Score 1
getDriveAndScoreStatusMessageCommand(Landmarks.ReefFace.FAR_LEFT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import javax.inject.Inject;
import javax.inject.Provider;

import static edu.wpi.first.units.Units.Seconds;

import edu.wpi.first.wpilibj2.command.WaitCommand;
import xbot.common.subsystems.autonomous.AutonomousCommandSelector;

Expand All @@ -25,7 +27,7 @@ public RightFourCoralAuto(
Provider<PathDriveToLocationForCoralStationFactory> pathDriveToLocationAndIntakeUntilCollectedProvider) {
super(autoSelector);


this.addCommands(new WaitCommand(Seconds.of(1)));

// Score 1
getDriveAndScoreStatusMessageCommand(Landmarks.ReefFace.FAR_RIGHT,
Expand Down