-
Notifications
You must be signed in to change notification settings - Fork 3
Commands
pkrinsky294 edited this page Oct 6, 2018
·
2 revisions
RoboPacman commands are designed to introduce FRC Command Based Programming
Commands and Command Groups should be used to control the actions of Pacman. A new Command should extend CommandBase and implement the following methods.
void initialize()
Called once when the command is first scheduled
void execute()
Call repeatedly until isFinished() returns true
boolean isFinished()
Called repeatedly to determine if the Command is done and the system can move on to the next command
CommandGroups define the sequence the commands are executed in. RoboPacman currently only supports sequential processing.
public AutoGroup() {
addSequential(new Turn(-90));
addSequential(new DriveStraight(500));
}