toggle menu
BunyipsLib
v7.3.0-master-94a93d2d7
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.subsystems
/
Actuator
/
Tasks
Tasks
open
inner
class
Tasks
Tasks for Actuator, access with
tasks
.
Members
Constructors
Tasks
Link copied to clipboard
constructor
(
)
Functions
control
Link copied to clipboard
@
NonNull
open
fun
control
(
@
NonNull
powerSupplier
:
DoubleSupplier
)
:
Task
Controls the actuator with a continuous supplier of power.
run
Link copied to clipboard
@
NonNull
open
fun
run
(
power
:
Double
)
:
Task
Continuously commands the actuator to control with this power value.
run
For
Link copied to clipboard
@
NonNull
open
fun
runFor
(
@
NonNull
time
:
Measure
<
Time
>
,
pwr
:
Double
)
:
Task
Run the actuator for a certain amount of time.
set
Power
Link copied to clipboard
@
NonNull
open
fun
setPower
(
pwr
:
Double
)
:
Task
Instantly set the power of the actuator.