ResetRotationTask

class ResetRotationTask(var rotation: Double, var localizer: Localizer) : Task

Set the localizer rotation. Can be used to reset the localizer angle from an external source such as vision.

Parameters

rotation
localizer

Constructors

Link copied to clipboard
constructor(rotation: Double, localizer: Localizer)

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 override fun onBegin(): Boolean

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