FollowPath

class FollowPath @JvmOverloads constructor(path: PathChain, holdEnd: Boolean = false, maxPower: Double? = null) : Command

This Command tells the PedroPath follower to follow a specific path or pathchain

Parameters

path

the path to follow

holdEnd

whether to actively hold position after the path is done being followed

maxPower

the max power, between 0 and 1. If maxPower is null then the default (set in FConstants or with follower.setMaxPower) is used.

Throws

if the follower is not set

if maxPower is not null or in the interval 0, 1

Constructors

Link copied to clipboard
constructor(path: Path, holdEnd: Boolean = false, maxPower: Double? = null)
constructor(path: PathChain, holdEnd: Boolean = false, maxPower: Double? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean
Link copied to clipboard
open override val subsystems: Set<Subsystem>

Functions

Link copied to clipboard
Link copied to clipboard
fun and(vararg commands: Command): ParallelGroup
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke()
Link copied to clipboard
Link copied to clipboard
fun raceWith(vararg commands: Command): ParallelRaceGroup
Link copied to clipboard
open override fun start()
Link copied to clipboard
open fun stop(interrupted: Boolean)
Link copied to clipboard
fun then(vararg commands: Command): SequentialGroup
Link copied to clipboard
Link copied to clipboard
open fun update()
Link copied to clipboard