Class Auton
java.lang.Object
frc.robot.auton.Auton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.pathplanner.lib.events.EventTriggerstatic final com.pathplanner.lib.events.EventTriggerstatic final SpectrumStatestatic final com.pathplanner.lib.events.EventTriggerstatic final com.pathplanner.lib.events.EventTriggerstatic final com.pathplanner.lib.events.EventTriggerstatic final com.pathplanner.lib.events.EventTrigger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBBBB(boolean mirrored) static CommandfollowSinglePath(String pathName) Retrieves the autonomous command selected on the dashboard.voidinit()launch()protected static CommandvoidonAutoEnded(Consumer<AutoEnd.Ended> listener) Tells the listener why each auto ended, after it is logged (the match summary).optional_BBB(boolean mirrored) optional_TBT(boolean mirrored) static CommandpathfindingCommandToPose(double xPos, double yPos, double rotation, double vel, double accel) secondMan_BBD(boolean mirrored) secondMan_TBTB(boolean mirrored) voidThis method configures the available autonomous routines that can be selected from the SmartDashboard.SpectrumAuton(String autoName, boolean mirrored) Creates a SpectrumAuton command sequence.SpectrumAuton(String autoName, boolean mirrored, double duration) TBTB(boolean mirrored) TBTT(boolean mirrored) TTTT(boolean mirrored)
-
Field Details
-
autonLaunching
-
autonIntake
public static final com.pathplanner.lib.events.EventTrigger autonIntake -
autonShotPrep
public static final com.pathplanner.lib.events.EventTrigger autonShotPrep -
autonShoot
public static final com.pathplanner.lib.events.EventTrigger autonShoot -
autonClearState
public static final com.pathplanner.lib.events.EventTrigger autonClearState -
autonUnjam
public static final com.pathplanner.lib.events.EventTrigger autonUnjam -
autonPoseUpdate
public static final com.pathplanner.lib.events.EventTrigger autonPoseUpdate
-
-
Constructor Details
-
Auton
-
-
Method Details
-
setupSelectors
public void setupSelectors()This method configures the available autonomous routines that can be selected from the SmartDashboard. -
init
public void init() -
onAutoEnded
Tells the listener why each auto ended, after it is logged (the match summary). -
doNothing
-
launch
-
secondMan_TBTB
-
secondMan_BBD
-
optional_TBT
-
optional_BBB
-
TBTB
-
TBTT
-
TTTT
-
BBBB
-
SpectrumAuton
Creates a SpectrumAuton command sequence.This method generates a command sequence that first waits for 0.01 seconds and then executes a PathPlannerAuto command with the specified autonomous routine name.
- Parameters:
autoName- the name of the autonomous routine to executemirrored- whether the autonomous routine should be mirrored- Returns:
- a Command that represents the SpectrumAuton sequence
-
SpectrumAuton
-
getAutonomousCommand
Retrieves the autonomous command selected on the dashboard.- Returns:
- the selected autonomous command if one is chosen; otherwise, returns a PrintCommand indicating that the autonomous command is null.
-
followSinglePath
-
pathfindingCommandToPose
public static Command pathfindingCommandToPose(double xPos, double yPos, double rotation, double vel, double accel) -
log
-