RoadRunnerTask

constructor(time: Measure<Time>, drive: RoadRunnerDrive, trajectory: Trajectory)

Create a new RoadRunnerTask with a time, drive, and trajectory.

Parameters

time

The time to run the task for

drive

The drive to use. Will be casted to a BunyipsSubsystem and used as the dependency if possible.

trajectory

The trajectory to follow


constructor(time: Measure<Time>, drive: RoadRunnerDrive, trajectorySequence: TrajectorySequence)

Create a new RoadRunnerTask with a time, drive, and trajectory sequence.

Parameters

time

The time to run the task for

drive

The drive to use. Will be casted to a BunyipsSubsystem and used as the dependency if possible.

trajectorySequence

The trajectory sequence to follow