Skip to content
Merged
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
8 changes: 8 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import frc.robot.DeviceIDs.controllerIDs;
import frc.robot.commands.AddVisionMeasurement;
import frc.robot.commands.ResetPose;
import frc.robot.commands.states.ShootingOnFly;
import frc.robot.constants.ChoreoTraj;
import frc.robot.constants.ConstAuto;
import frc.robot.constants.ConstField;
Expand Down Expand Up @@ -299,6 +300,11 @@ public void configAutonomous() {
ConstAuto.OUTPOST_SHOOTING_TIMEOUT));
autoStartingPoses.put(OSideDoubleNeutralWithOutpost, ChoreoTraj.OSideTrenchToNeutral);

Command OSidePreloadAndBackup = Commands.sequence(
ShootingOnMove(ChoreoTraj.OSidePreloadAndBackup,
ConstAuto.OUTPOST_SHOOTING_TIMEOUT));
autoStartingPoses.put(OSidePreloadAndBackup, ChoreoTraj.OSidePreloadAndBackup);

// Example: Add autonomous routines to the chooser
// Add more autonomous routines as needed, e.g.:\
// autoChooser.addOption("Score and Leave", runPath("ScoreAndLeave"));
Expand All @@ -312,6 +318,7 @@ public void configAutonomous() {
autoChooser.addOption("OSideDoubleNeutral", OSideDoubleNeutral);
autoChooser.addOption("OSideNeutralWithOutpost", OSideNeutralWithOutpost);
autoChooser.addOption("OSideDoubleNeutralWithOutpost", OSideDoubleNeutralWithOutpost);
autoChooser.addOption("OSidePreloadAndBackup", OSidePreloadAndBackup);

// enter which we want to do based on name
autoChooser.onChange(selectedAuto -> {
Expand All @@ -327,6 +334,7 @@ public void configAutonomous() {
}

// START OF AUTO COMMANDS

Command ShootOnly(Command prepPreset, Time shootingTime, Time preppingTime) {
return Commands.sequence(
Commands.runOnce(() -> stateMachineInstance.setRobotState(RobotState.NONE)).asProxy(),
Expand Down
Loading