Turn

class Turn @JvmOverloads constructor(angle: Angle, tolerance: Angle = 5.deg) : Command

A Command that turns the robot by an angle

Parameters

angle

the angle to turn by. Positive angles turn counterclockwise and negative angles turn clockwise.

tolerance

the maximum error between the current heading and the target heading required to finish

Throws

if the follower is not set

Constructors

Link copied to clipboard
constructor(angle: Angle, tolerance: Angle = 5.deg)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun and(vararg commands: Command): ParallelGroup
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke()
Link copied to clipboard
Link copied to clipboard
fun raceWith(vararg commands: Command): ParallelRaceGroup
Link copied to clipboard
open override fun start()
Link copied to clipboard
open fun stop(interrupted: Boolean)
Link copied to clipboard
fun then(vararg commands: Command): SequentialGroup
Link copied to clipboard
Link copied to clipboard
open fun update()
Link copied to clipboard