Hermes
Toggle table of contents
0.2.1
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
Hermes
ftc
/
com.acmerobotics.roadrunner.ftc
/
TurnAction
Turn
Action
class
TurnAction
(
val
turn
:
TimeTurn
,
val
drive
:
Drive
)
:
ActionEx
Members
Constructors
Turn
Action
Link copied to clipboard
constructor
(
turn
:
TimeTurn
,
drive
:
Drive
)
Properties
drive
Link copied to clipboard
@
JvmField
val
drive
:
Drive
requirements
Link copied to clipboard
open
val
requirements
:
Set
<
Any
>
start
Time
Link copied to clipboard
var
startTime
:
Double
turn
Link copied to clipboard
@
JvmField
val
turn
:
TimeTurn
Functions
delay
Link copied to clipboard
open
fun
delay
(
dt
:
Duration
)
:
SequentialAction
open
fun
delay
(
dt
:
Duration
)
:
SequentialAction
end
Link copied to clipboard
open
fun
end
(
packet
:
TelemetryPacket
)
init
Link copied to clipboard
open
override
fun
init
(
p
:
TelemetryPacket
)
interruptible
Link copied to clipboard
open
fun
interruptible
(
onInterruption
:
Action
)
:
Interruptible
open
fun
interruptible
(
onInterruption
:
InstantFunction
)
:
Interruptible
open
fun
interruptible
(
onInterruption
:
(
)
->
Action
)
:
Interruptible
loop
Link copied to clipboard
open
override
fun
loop
(
p
:
TelemetryPacket
)
:
Boolean
preview
Link copied to clipboard
open
fun
preview
(
fieldOverlay
:
Canvas
)
race
Link copied to clipboard
open
fun
race
(
a
:
Action
)
:
RaceAction
open
fun
race
(
f
:
InstantFunction
)
:
RaceAction
open
fun
race
(
a
:
(
)
->
Action
)
:
RaceAction
run
Link copied to clipboard
override
fun
run
(
p
:
TelemetryPacket
)
:
Boolean
then
Link copied to clipboard
open
fun
then
(
a
:
Action
)
:
SequentialAction
open
fun
then
(
f
:
InstantFunction
)
:
SequentialAction
open
fun
then
(
a
:
(
)
->
Action
)
:
SequentialAction
with
Link copied to clipboard
open
fun
with
(
a
:
Action
)
:
ParallelAction
open
fun
with
(
f
:
InstantFunction
)
:
ParallelAction
open
fun
with
(
a
:
(
)
->
Action
)
:
ParallelAction
with
End
Link copied to clipboard
fun
withEnd
(
endBlock
:
(
TelemetryPacket
)
->
Unit
)
:
ActionEx
with
Init
Link copied to clipboard
fun
withInit
(
initBlock
:
(
TelemetryPacket
)
->
Unit
)
:
ActionEx
with
Loop
Link copied to clipboard
fun
withLoop
(
loopBlock
:
(
TelemetryPacket
)
->
Boolean
)
:
ActionEx
with
Preview
Link copied to clipboard
open
fun
withPreview
(
preview
:
Consumer
<
Canvas
>
)
:
Action
open
fun
withPreview
(
preview
:
(
Canvas
)
->
Unit
)
:
Action
with
Requirements
Link copied to clipboard
open
fun
withRequirements
(
vararg
reqs
:
Any
)
:
Action
open
fun
withRequirements
(
reqs
:
Set
<
Any
>
)
:
Action