toggle menu
BunyipsLib
v5.1.1-master-1f1d461c
BunyipsLib
switch theme
search in API
BunyipsLib
/
org.murraybridgebunyips.bunyipslib.subsystems
/
Switch
/
Tasks
Tasks
open
inner
class
Tasks
Tasks for Switch, access with
tasks
.
Members
Constructors
Tasks
Link copied to clipboard
constructor
(
)
Functions
close
Link copied to clipboard
open
fun
close
(
)
:
Task
Close the switch.
control
Delta
Link copied to clipboard
open
fun
controlDelta
(
powerSupplier
:
DoubleSupplier
)
:
Task
Move the servo with a supplier of power/delta.
control
Position
Link copied to clipboard
open
fun
controlPosition
(
positionSupplier
:
DoubleSupplier
)
:
Task
Move the servo with a supplier of position.
delta
Link copied to clipboard
open
fun
delta
(
delta
:
Double
)
:
Task
Delta the current servo position.
delta
Clipped
Link copied to clipboard
open
fun
deltaClipped
(
delta
:
Double
)
:
Task
Delta the current servo position.
open
Link copied to clipboard
open
fun
open
(
)
:
Task
Open the switch.
set
Clipped
Link copied to clipboard
open
fun
setClipped
(
position
:
Double
)
:
Task
Set a custom position that is clipped between the closed and open bounds.
set
To
Link copied to clipboard
open
fun
setTo
(
position
:
Double
)
:
Task
Set a custom position that is not affected by the closed and open bounds.
toggle
Link copied to clipboard
open
fun
toggle
(
)
:
Task
Toggle the switch