Package frc.robot.auton
Class AutonCommands
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.auton.AutonCommands
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class AutonCommands
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.FunctionalCommandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandcom.pathplanner.lib.commands.PathPlannerAutofirstPath(String pName, edu.wpi.first.math.geometry.Rotation2d pStartingRotation, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto) edu.wpi.first.wpilibj2.command.CommandfollowChoreoPath(String pathName) edu.wpi.first.wpilibj2.command.CommandfollowChoreoPath(String pathName, com.pathplanner.lib.controllers.PPHolonomicDriveController PID) edu.wpi.first.wpilibj2.command.CommandfollowFirstChoreoPath(String pathName, edu.wpi.first.math.geometry.Rotation2d startingRotation) edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command>Optional<com.pathplanner.lib.path.PathPlannerPath>edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.CommandnextAutoChecker(edu.wpi.first.wpilibj2.command.Command pAuto) com.pathplanner.lib.commands.PathPlannerAutonextIntakeCoralPath(String pName) com.pathplanner.lib.commands.PathPlannerAutonextPath(String pName, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto) com.pathplanner.lib.commands.PathPlannerAutonextPath(String pName, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto, com.pathplanner.lib.controllers.PPHolonomicDriveController pPID) com.pathplanner.lib.commands.PathPlannerAutonextScoreCoralPath(String pName) edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.CommandsetIndexVoltCommand(double volts) edu.wpi.first.wpilibj2.command.CommandsetIntakeVoltCommand(double volts) voidtryToAddPathToChooser(String pPathName, edu.wpi.first.wpilibj2.command.Command... pCommands) voidtryToAddPathToChooser(String pPathName, Runnable pPathAdding) edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.CommandMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
AutonCommands
-
-
Method Details
-
tryToAddPathToChooser
public void tryToAddPathToChooser(String pPathName, edu.wpi.first.wpilibj2.command.Command... pCommands) -
tryToAddPathToChooser
-
getmAutoChooser
public edu.wpi.first.wpilibj.smartdashboard.SendableChooser<edu.wpi.first.wpilibj2.command.Command> getmAutoChooser() -
firstPath
public com.pathplanner.lib.commands.PathPlannerAuto firstPath(String pName, edu.wpi.first.math.geometry.Rotation2d pStartingRotation, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto) -
nextPath
public com.pathplanner.lib.commands.PathPlannerAuto nextPath(String pName, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto) -
nextPath
public com.pathplanner.lib.commands.PathPlannerAuto nextPath(String pName, BooleanSupplier pConditionSupplier, edu.wpi.first.wpilibj2.command.Command pNextCommand, edu.wpi.first.wpilibj2.command.Command pNextAuto, com.pathplanner.lib.controllers.PPHolonomicDriveController pPID) -
nextAutoChecker
public edu.wpi.first.wpilibj2.command.Command nextAutoChecker(edu.wpi.first.wpilibj2.command.Command pAuto) -
backUpAuton
public edu.wpi.first.wpilibj2.command.Command backUpAuton() -
nextScoreCoralPath
-
nextIntakeCoralPath
-
clawHoldCommand
public edu.wpi.first.wpilibj2.command.Command clawHoldCommand() -
clawEjectCommand
public edu.wpi.first.wpilibj2.command.Command clawEjectCommand() -
clawIntakeCommand
public edu.wpi.first.wpilibj2.command.Command clawIntakeCommand() -
elevatorToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command elevatorToPreScoreCommand() -
wristToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command wristToPreScoreCommand() -
intakeToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command intakeToPreScoreCommand() -
intakePivotToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command intakePivotToPreScoreCommand() -
indexerToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command indexerToPreScoreCommand() -
clawToPreScoreCommand
public edu.wpi.first.wpilibj2.command.Command clawToPreScoreCommand() -
wristToScoreCommand
public edu.wpi.first.wpilibj2.command.Command wristToScoreCommand() -
elevatorToPreIntakeCommand
public edu.wpi.first.wpilibj2.command.Command elevatorToPreIntakeCommand() -
wristToPreIntakeCommand
public edu.wpi.first.wpilibj2.command.Command wristToPreIntakeCommand() -
intakeCoralCommand
public edu.wpi.first.wpilibj2.command.Command intakeCoralCommand() -
setIntakeVoltCommand
public edu.wpi.first.wpilibj2.command.Command setIntakeVoltCommand(double volts) -
intakePivotCoralCommand
public edu.wpi.first.wpilibj2.command.Command intakePivotCoralCommand() -
indexCoralCommand
public edu.wpi.first.wpilibj2.command.Command indexCoralCommand() -
setIndexVoltCommand
public edu.wpi.first.wpilibj2.command.Command setIndexVoltCommand(double volts) -
elevatorToIntakeCommand
public edu.wpi.first.wpilibj2.command.Command elevatorToIntakeCommand() -
scoreAlgaeCommand
public edu.wpi.first.wpilibj2.command.Command scoreAlgaeCommand() -
intakeAlgaeCommand
public edu.wpi.first.wpilibj2.command.Command intakeAlgaeCommand() -
getIntakeIR1HasPiece
-
getIntakeIR2HasPiece
-
getClawIR3HasPiece
-
getIntakePivotAtGoal
-
getElevatorAtGoal
-
getWristAtGoal
-
followFirstChoreoPath
public edu.wpi.first.wpilibj2.command.Command followFirstChoreoPath(String pathName, edu.wpi.first.math.geometry.Rotation2d startingRotation) -
followChoreoPath
-
followChoreoPath
public edu.wpi.first.wpilibj2.command.Command followChoreoPath(String pathName, com.pathplanner.lib.controllers.PPHolonomicDriveController PID) -
getTraj
-
getSide
-
autoPlaceholder
public edu.wpi.first.wpilibj2.command.FunctionalCommand autoPlaceholder()
-