diff --git a/src/main/java/frc/robot/commands/auton/BaseAutonSequence.java b/src/main/java/frc/robot/commands/auton/BaseAutonSequence.java index 6da42345..e79a3a6e 100644 --- a/src/main/java/frc/robot/commands/auton/BaseAutonSequence.java +++ b/src/main/java/frc/robot/commands/auton/BaseAutonSequence.java @@ -38,6 +38,7 @@ public BaseAutonSequence(IntakePivotSubsystem intakePivotSubsystem, IntakeRoller addRequirements(swerveSubsystem, intakeRollersSubsystem,intakePivotSubsystem); + isRed = DriverStation.getAlliance().get() == DriverStation.Alliance.Red; swerveSubsystem = new SwerveSubsystem(); @@ -59,7 +60,7 @@ public Command followPath(ChoreoTrajectory traj){ speeds.omegaRadiansPerSecond ); System.out.println(speeds.vxMetersPerSecond);}), - () -> DriverStation.getAlliance().get() == DriverStation.Alliance.Red, + () -> isRed, swerveSubsystem ); return swerveCommand;