toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.subsystems
/
HoldableActuator
/
Tasks
Tasks
open
inner
class
Tasks
Tasks for HoldableActuator, access with
tasks
.
Members
Constructors
Tasks
Link copied to clipboard
constructor
(
)
Functions
ceil
Link copied to clipboard
@
NonNull
open
fun
ceil
(
)
:
Task
Send the actuator to the top limit, using the constants for homing.
control
Link copied to clipboard
@
NonNull
open
fun
control
(
@
NonNull
powerSupplier
:
DoubleSupplier
)
:
Task
Move the actuator with a supplier of power.
delta
Link copied to clipboard
@
NonNull
open
fun
delta
(
deltaPosition
:
Int
)
:
Task
Delta the position of the actuator.
go
To
Link copied to clipboard
@
NonNull
open
fun
goTo
(
@
NonNull
limitSwitch
:
TouchSensor
)
:
Task
Set the position of the actuator based on a mapped limit switch.
@
NonNull
open
fun
goTo
(
targetPosition
:
Int
)
:
Task
Set the position of the actuator.
home
Link copied to clipboard
@
NonNull
open
fun
home
(
)
:
Task
Home the actuator based on encoders against a hard stop or limit switch.
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
(
p
:
Double
)
:
Task
Set the power of the actuator.