AutoPath

class AutoPath(inputFile: File, val swerveAuto: SwerveAuto, val gyro: GenericGyro, commandsList: HashMap<Int, CommandBase> = HashMap()) : CommandBase

A class that represents a path that the robot can follow. These paths are defined in JSON files and generated from the custom Cshcyberhawks pathplanner.

Parameters

inputFile

The file that contains the path.

swerveAuto

The SwerveAuto object that the robot is using.

gyro

The gyro that the robot is using.

commandsList

A HashMap of commands that the robot can execute at certain points in the path. The key is the index of points at which the command should be executed. These attached commands will run concurrently with the robot point movement in a blocking way.

Constructors

Link copied to clipboard
constructor(inputFile: File, swerveAuto: SwerveAuto, gyro: GenericGyro, commandsList: HashMap<Int, CommandBase> = HashMap())

Creates a new AutoPath object.

Functions

Link copied to clipboard
fun addRequirements(vararg p0: Subsystem)
Link copied to clipboard
open fun alongWith(vararg p0: Command): ParallelCommandGroup
Link copied to clipboard
open fun andThen(vararg p0: Command): SequentialCommandGroup
open fun andThen(p0: Runnable, vararg p1: Subsystem): SequentialCommandGroup
Link copied to clipboard
open fun asProxy(): ProxyCommand
Link copied to clipboard
open fun beforeStarting(p0: Command): SequentialCommandGroup
open fun beforeStarting(p0: Runnable, vararg p1: Subsystem): SequentialCommandGroup
Link copied to clipboard
open fun cancel()
Link copied to clipboard
open fun deadlineWith(vararg p0: Command): ParallelDeadlineGroup
Link copied to clipboard
open fun end(p0: Boolean)
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open fun finallyDo(p0: BooleanConsumer): WrapperCommand
Link copied to clipboard
open fun getInterruptionBehavior(): Command.InterruptionBehavior
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getRequirements(): MutableSet<Subsystem>
Link copied to clipboard
open fun getSubsystem(): String
Link copied to clipboard
open fun handleInterrupt(p0: Runnable): WrapperCommand
Link copied to clipboard
open fun hasRequirement(p0: Subsystem): Boolean
Link copied to clipboard
open fun ignoringDisable(p0: Boolean): WrapperCommand
Link copied to clipboard
open override fun initialize()
Link copied to clipboard
open override fun initSendable(p0: SendableBuilder)
Link copied to clipboard
open override fun isFinished(): Boolean
Link copied to clipboard
open fun isScheduled(): Boolean
Link copied to clipboard
open fun perpetually(): PerpetualCommand
Link copied to clipboard
open fun raceWith(vararg p0: Command): ParallelRaceGroup
Link copied to clipboard
open fun repeatedly(): RepeatCommand
Link copied to clipboard
Link copied to clipboard
open fun schedule()
Link copied to clipboard
open override fun setName(p0: String)
Link copied to clipboard
open fun setSubsystem(p0: String)
Link copied to clipboard
open fun unless(p0: BooleanSupplier): ConditionalCommand
Link copied to clipboard
open fun until(p0: BooleanSupplier): ParallelRaceGroup
Link copied to clipboard
open fun withInterrupt(p0: BooleanSupplier): ParallelRaceGroup
Link copied to clipboard
open fun withInterruptBehavior(p0: Command.InterruptionBehavior): WrapperCommand
Link copied to clipboard
open fun withName(p0: String): WrapperCommand
Link copied to clipboard
open fun withTimeout(p0: Double): ParallelRaceGroup

Properties

Link copied to clipboard
Link copied to clipboard