Skip to content

Commit

Permalink
added commands for other autos
Browse files Browse the repository at this point in the history
  • Loading branch information
jpothen8 committed Feb 10, 2024
1 parent d8fd3d0 commit e57531d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package frc.team449.robot2024.auto.routines

import edu.wpi.first.wpilibj2.command.WaitCommand
import frc.team449.control.auto.ChoreoRoutine
import frc.team449.control.auto.ChoreoRoutineStructure
import frc.team449.control.auto.ChoreoTrajectory
Expand All @@ -17,9 +16,7 @@ class Experimental1PieceTaxi(
drive = robot.drive,
parallelEventMap = hashMapOf(),
stopEventMap = hashMapOf(
0 to WaitCommand(1.5),
1 to WaitCommand(1.5),
2 to WaitCommand(1.5)
0 to AutoUtil.autoShoot(robot)
),
debug = true
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package frc.team449.robot2024.auto.routines

import edu.wpi.first.wpilibj2.command.WaitCommand
import frc.team449.control.auto.ChoreoRoutine
import frc.team449.control.auto.ChoreoRoutineStructure
import frc.team449.control.auto.ChoreoTrajectory
Expand All @@ -15,11 +14,13 @@ class Experimental3PieceMid(
override val routine =
ChoreoRoutine(
drive = robot.drive,
parallelEventMap = hashMapOf(),
parallelEventMap = hashMapOf(
0 to AutoUtil.autoIntake(robot)
),
stopEventMap = hashMapOf(
0 to WaitCommand(1.5),
1 to WaitCommand(1.5),
2 to WaitCommand(1.5)
0 to AutoUtil.autoShoot(robot),
1 to AutoUtil.autoShoot(robot),
2 to AutoUtil.autoShoot(robot)
),
debug = true
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package frc.team449.robot2024.auto.routines

import edu.wpi.first.wpilibj2.command.WaitCommand
import frc.team449.control.auto.ChoreoRoutine
import frc.team449.control.auto.ChoreoRoutineStructure
import frc.team449.control.auto.ChoreoTrajectory
Expand All @@ -16,11 +15,7 @@ class ExperimentalTaxi(
ChoreoRoutine(
drive = robot.drive,
parallelEventMap = hashMapOf(),
stopEventMap = hashMapOf(
0 to WaitCommand(1.5),
1 to WaitCommand(1.5),
2 to WaitCommand(1.5)
),
stopEventMap = hashMapOf(),
debug = true
)

Expand Down

0 comments on commit e57531d

Please sign in to comment.