Skip to content

Commit

Permalink
Merge pull request #75 from frc937/command-instances
Browse files Browse the repository at this point in the history
Make an instance for every command
  • Loading branch information
AraReighard authored Feb 20, 2024
2 parents bdaf226 + fdea79b commit 2928374
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
import frc.robot.commands.DeployUrMom;
import frc.robot.commands.EnterXMode;
import frc.robot.commands.RunIntake;
import frc.robot.commands.auto.MoveAwayFromAmp;
import frc.robot.commands.auto.OnePieceAuto;
import frc.robot.commands.auto.TaxiAuto;
import frc.robot.commands.drive.DriveFieldOriented;
import frc.robot.commands.drive.DriveFieldOrientedHeadingSnapping;
import frc.robot.commands.drive.DriveRobotOriented;
import frc.robot.commands.mailbox.DeindexNote;
import frc.robot.commands.mailbox.DeployMailbox;
Expand Down Expand Up @@ -110,6 +113,15 @@ public class RobotContainer {
scaledControllerLeftXAxisSupplier,
scaledControllerLeftYAxisSupplier,
scaledControllerRightXAxisSupplier);
private DriveFieldOrientedHeadingSnapping driveFieldOrientedHeadingSnapping =
new DriveFieldOrientedHeadingSnapping(
scaledControllerRightXAxisSupplier,
scaledControllerLeftYAxisSupplier,
scaledControllerLeftXAxisSupplier,
povUpDirectionSupplier,
povDownDirectionSupplier,
povLeftDirectionSupplier,
povRightDirectionSupplier);
private EnterXMode enterXMode = new EnterXMode();
private DeployPneumatics deployPneumatics = new DeployPneumatics();
private RunBelts runBelts = new RunBelts();
Expand All @@ -135,6 +147,8 @@ public class RobotContainer {
private DeployUrMom deployUrMom = new DeployUrMom();

/* Autos */
private MoveAwayFromAmp moveAwayFromAmp = new MoveAwayFromAmp();
private OnePieceAuto onePieceAuto = new OnePieceAuto();
private TaxiAuto taxiAuto = new TaxiAuto();

/*
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/commands/auto/OnePieceAuto.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import frc.robot.commands.AimAndFireRoutine;
import frc.robot.commands.SeekTargetWithLimelight;

/* Enter weeb joke here. */
/**
* Auto that deposits a preloaded Note into the Amp. Does so by spinning until the Limelight sees an
* AprilTag for one of the Amps, moving the bot towards the Amp with the Limelight, depositing the
Expand Down

0 comments on commit 2928374

Please sign in to comment.