-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4 piece shooting far auto (double check parallel and stop command str…
…ucture still)
- Loading branch information
Showing
12 changed files
with
2,731 additions
and
2,078 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
2,854 changes: 1,427 additions & 1,427 deletions
2,854
src/main/deploy/choreo/4_Piece_Shoot_Anywhere.chor
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
39 changes: 39 additions & 0 deletions
39
src/main/kotlin/frc/team449/robot2024/auto/routines/FourPieceAway.kt
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,39 @@ | ||
package frc.team449.robot2024.auto.routines | ||
|
||
import frc.team449.control.auto.ChoreoRoutine | ||
import frc.team449.control.auto.ChoreoRoutineStructure | ||
import frc.team449.control.auto.ChoreoTrajectory | ||
import frc.team449.robot2024.Robot | ||
import frc.team449.robot2024.auto.AutoUtil | ||
|
||
class FourPieceAway( | ||
robot: Robot, | ||
isRed: Boolean | ||
) : ChoreoRoutineStructure { | ||
override val routine = | ||
ChoreoRoutine( | ||
drive = robot.drive, | ||
parallelEventMap = hashMapOf( | ||
0 to AutoUtil.autoIntakeAway(robot), | ||
1 to AutoUtil.autoIntakeAway(robot), | ||
2 to AutoUtil.autoIntakeAway(robot), | ||
3 to AutoUtil.autoIntakeAway(robot), | ||
), | ||
stopEventMap = hashMapOf( | ||
0 to AutoUtil.autoShoot(robot), | ||
1 to AutoUtil.autoShootAway(robot), | ||
2 to AutoUtil.autoShootAway(robot), | ||
3 to AutoUtil.autoShootAway(robot) | ||
), | ||
debug = false | ||
) | ||
|
||
override val trajectory: MutableList<ChoreoTrajectory> = | ||
if (isRed) { | ||
AutoUtil.transformForRed( | ||
ChoreoTrajectory.createTrajectory("4_Piece_Shoot_Anywhere") | ||
) | ||
} else { | ||
ChoreoTrajectory.createTrajectory("4_Piece_Shoot_Anywhere") | ||
} | ||
} |
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
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
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
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
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
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
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