-
- All Implemented Interfaces:
-
com.acmerobotics.roadrunner.Action
public final class SequentialAction implements Action
Action combinator that executes the action group initialActions in series. Each action is run one after the other. When an action completes, the next one is immediately run. This action completes when the last actions completes.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Action>
initialActions
-
Constructor Summary
Constructors Constructor Description SequentialAction(Action actions)
SequentialAction(List<Action> initialActions)
-
Method Summary
Modifier and Type Method Description final List<Action>
getInitialActions()
Boolean
run(TelemetryPacket p)
Runs a single uninterruptible block. Unit
preview(Canvas fieldOverlay)
Draws a preview of the action on canvas fieldOverlay. -
-
Method Detail
-
getInitialActions
final List<Action> getInitialActions()
-
run
Boolean run(TelemetryPacket p)
Runs a single uninterruptible block. Returns true if the action should run again and false if it has completed. A telemetry packet p is provided to record any information on the action's progress.
-
preview
Unit preview(Canvas fieldOverlay)
Draws a preview of the action on canvas fieldOverlay.
-
-
-
-