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