FollowPathChainCommand
import com.seattlesolvers.solverslib.pedroCommand.FollowPathChainCommand;
This command allows you to easily follow a PathChain (see FollowPathCommand for following a Path) by calling Pedro Pathing's Follower.followPath(PathChain pathChain, double maxPower, boolean holdEnd).
It has two mandatory parameters:
Pedro Pathing's Follower (which controls the robot movement)
The PathChain to follow
An optional boolean parameter called holdEnd that decides whether or not the robot should hold its position at the end of the PathChain (default value is true if not supplied)
If you are using an ArrayList of PathChains, you can simply get the desired PathChain that you want:
To see how you can use both this command and FollowPathCommand in a full Autonomous Program, look at this example.
Last updated