setHeadingTarget

open fun setHeadingTarget(@NonNull heading: Measure<Angle>)

Set a manual heading that this task should lock to, much as if the robot were rotated to this position and is to try and hold rotation. Note that user input will override this lock, this simply tells the task to respect this value as the locking value.

Parameters

heading

the angle to rotate to, will be wrapped from [0, 2pi] radians