generated from StuyPulse/Phil
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31297d2
commit edf7ee1
Showing
3 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/stuypulse/robot/commands/TrapScoreRoutine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/************************ PROJECT IZZI *************************/ | ||
/* Copyright (c) 2024 StuyPulse Robotics. All rights reserved. */ | ||
/* Use of this source code is governed by an MIT-style license */ | ||
/* that can be found in the repository LICENSE file. */ | ||
/***************************************************************/ | ||
|
||
package com.stuypulse.robot.commands; | ||
|
||
import com.stuypulse.robot.commands.amper.AmperScoreTrap; | ||
import com.stuypulse.robot.commands.amper.AmperToHeight; | ||
import com.stuypulse.robot.commands.conveyor.ConveyorToAmp; | ||
import com.stuypulse.robot.constants.Settings.Amper.Lift; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
|
||
public class TrapScoreRoutine extends SequentialCommandGroup { | ||
|
||
public TrapScoreRoutine() { | ||
addCommands( | ||
// NOTE: will not work if lift is at safe height, maybe this shouldn't run | ||
new ConveyorToAmp(), | ||
AmperToHeight.untilDone(Lift.TRAP_SCORE_HEIGHT), | ||
new AmperScoreTrap() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters