@@ -207,19 +207,13 @@ private Command getAlignCommandCenter() {
207207    return  Commands .sequence (
208208      Blackbox .setAligningCmd (true ),
209209      new  DeferredCommand (() -> {
210-         
211210        Pose2d  currentPose  = m_swerve .getPose ();
212211        Pose2d  target  = Blackbox .getNearestAlignPositionReef (currentPose );
213-         if  (target  == null ) return  Commands .none ();
214-           
215-         
212+         if  (target  == null ) return  Commands .none (); 
216213          target  = CougarUtil .addDistanceToPoseLeft (target ,((m_coralIntake .getAlignOffset () - 0.201 )) + 0.13 );
217214          target  = CougarUtil .addDistanceToPose (target , 0.15 );
218-         
219- 
220215        Command  finalAlign  = new  AlignCommand (m_swerve , target );
221216        if  (DriverStation .isAutonomous ()) finalAlign  = finalAlign .withTimeout (timeout );
222- 
223217        if (CougarUtil .getDistance (target , m_swerve .getPose ()) > 0.2 )
224218          return  Commands .sequence (
225219            AutoBuilder .pathfindToPose (target , TunerConstants .kAutoAlignConstraints ),
@@ -524,14 +518,22 @@ private void configureBindings() {
524518    NamedCommands .registerCommand ("ReefAlignR" , getAlignCommand (Blackbox .ReefSelect .RIGHT ));
525519    NamedCommands .registerCommand ("ReefAlignCenter" , getAlignCommandCenter ());
526520    NamedCommands .registerCommand ("Loading" , Blackbox .robotStateCmd (Blackbox .State .loading ));
521+     
527522    NamedCommands .registerCommand ("Barge L3" , Commands .sequence (
528523      Blackbox .robotStateCmd (State .MoveElevator ),
529-       new  ElevatorCommand (m_elevator , Constants .Elevator .Setpoints .L3Algae ).asProxy (), 
530-       new  WristCommand (m_wrist , Constants .Wrist .Setpoints .Source ).asProxy ()
531-   ));
524+         new  ElevatorCommand (m_elevator , Constants .Elevator .Setpoints .L3Algae ).asProxy (), 
525+         new  WristCommand (m_wrist , Constants .Wrist .Setpoints .Source ).asProxy ()));
526+   
527+     NamedCommands .registerCommand ("Net Shot" , Commands .sequence (
528+       Blackbox .robotStateCmd (State .MoveElevator ),
529+         new  ElevatorCommand (m_elevator , Constants .Elevator .Setpoints .Barge ),
530+         new  WristCommand (m_wrist , Constants .Wrist .Setpoints .Barge )));
532531
533-   NamedCommands .registerCommand ("Algae Harvest" , 
534-       new  CoralIntakeSpeed (m_coralIntake , Constants .CoralIntake .release ).asProxy ());
532+     NamedCommands .registerCommand ("Algae Harvest" , 
533+         new  CoralIntakeSpeed (m_coralIntake , Constants .CoralIntake .release ).asProxy ());
534+     
535+     NamedCommands .registerCommand ("Algae Expel" , 
536+       new  CoralIntakeSpeed (m_coralIntake , -Constants .CoralIntake .release ).asProxy ());
535537
536538    NamedCommands .registerCommand ("AutoWiggle" , 
537539      Commands .sequence (
@@ -552,12 +554,11 @@ private void configureBindings() {
552554
553555    m_autoChooser .addOption ("MOVE AUTO ANYWHERE" , AutoHelper .getMoveAuto (m_swerve ));
554556    m_autoChooser .addOption ("THREE PIECE BACK FINAL NON PROCESSOR SIDE UNTESTED" , AutoHelper .getThreePieceBackNonProc (m_swerve ));
555-     m_autoChooser .addOption ("ONE PIECE CENTER UNTESTED" , AutoHelper .getOnePCenter (m_swerve ));
557+     m_autoChooser .addOption ("ONE PIECE CENTER ALGAE  UNTESTED" , AutoHelper .getOnePCenterAlgae (m_swerve ));
556558    m_autoChooser .addOption ("THREE PIECE SIDE PROCESSOR UNTESTED" , AutoHelper .getThreePieceSideProc (m_swerve ));
557559    m_autoChooser .addOption ("TWO PIECE PROCESSOR UNTESTED" , AutoHelper .getTwoPieceProc (m_swerve ));
558560    m_autoChooser .addOption ("TWO PIECE PROCESSOR + ALGAE REMOVAL UNTESTED" , AutoHelper .getTwoPieceProc_algaeRemoval (m_swerve ));
559561    m_autoChooser .addOption ("wiggle test" , AutoHelper .wiggle (m_swerve ));
560-     m_autoChooser .addOption ("One piece algae" , AutoHelper .getOnePCenterAlgae (m_swerve ));
561562    //m_autoChooser.addOption("Testing Auto Align", AutoHelper.testAutoAlign(m_swerve)); 
562563    //m_autoChooser.addOption("Test 2 Piece", AutoHelper.getTwoPieceProcTest(m_swerve)); 
563564
0 commit comments