Skip to content

Commit

Permalink
added isred
Browse files Browse the repository at this point in the history
  • Loading branch information
eerinn committed Feb 10, 2024
1 parent 1dbd065 commit 54a4719
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public BaseAutonSequence(IntakePivotSubsystem intakePivotSubsystem, IntakeRoller

addRequirements(swerveSubsystem, intakeRollersSubsystem,intakePivotSubsystem);

isRed = DriverStation.getAlliance().get() == DriverStation.Alliance.Red;

swerveSubsystem = new SwerveSubsystem();

Expand All @@ -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;
Expand Down

0 comments on commit 54a4719

Please sign in to comment.