Package com.acmerobotics.roadrunner
Class SleepAction
-
- All Implemented Interfaces:
-
com.acmerobotics.roadrunner.Action
public final class SleepAction implements Action
Primitive sleep action that stalls for dt seconds.
-
-
Constructor Summary
Constructors Constructor Description SleepAction(Double dt)
-
Method Summary
-
-
Constructor Detail
-
SleepAction
SleepAction(Double dt)
-
-
Method Detail
-
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.
-
-
-
-