WaitForMotorTask

class WaitForMotorTask(val motorCtrlr: MotorPositionController, var epsilon: Float) : Task

Wait for a motor position controller to reach its target position

Parameters

motorCtrlr
epsilon

Size of the region around the goal that is considered at the target

Constructors

Link copied to clipboard
constructor(motorCtrlr: MotorPositionController, epsilon: Float)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun kill()

Used to stop tasks part of the way through.

Link copied to clipboard
open override fun loop(): Boolean

Called every loop cycle of the queue. Returning true moves on to next task.

Link copied to clipboard
open fun onBegin(): Boolean

Called when task is started. Returning false will skip the task.