toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.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
@
NonNull
open
fun
close
(
)
:
Task
Close the switch.
control
Delta
Link copied to clipboard
@
NonNull
open
fun
controlDelta
(
@
NonNull
powerSupplier
:
DoubleSupplier
)
:
Task
Move the servo with a supplier of power/delta.
control
Position
Link copied to clipboard
@
NonNull
open
fun
controlPosition
(
@
NonNull
positionSupplier
:
DoubleSupplier
)
:
Task
Move the servo with a supplier of position.
delta
Link copied to clipboard
@
NonNull
open
fun
delta
(
delta
:
Double
)
:
Task
Delta the current servo position.
delta
Unclipped
Link copied to clipboard
@
NonNull
open
fun
deltaUnclipped
(
delta
:
Double
)
:
Task
Delta the current servo position.
open
Link copied to clipboard
@
NonNull
open
fun
open
(
)
:
Task
Open the switch.
set
To
Link copied to clipboard
@
NonNull
open
fun
setTo
(
position
:
Double
)
:
Task
Set a custom position that is clipped between the closed and open bounds.
set
To
Unclipped
Link copied to clipboard
@
NonNull
open
fun
setToUnclipped
(
position
:
Double
)
:
Task
Set a custom position that is not affected by the closed and open bounds.
toggle
Link copied to clipboard
@
NonNull
open
fun
toggle
(
)
:
Task
Toggle the switch