Encoders

object Encoders : API

An API for manipulating wheels using encoders.

This helps when writing autonomous that needs to move a specific distance, or turn a specific amount.

Requires the TriWheels API.

See also

Types

Link copied to clipboard

An enum representing which axis a robot will drive along in driveTo.

Properties

Link copied to clipboard
open val dependencies: Set<API>

Configures all APIs that must be initialized in order to use this API.

Link copied to clipboard

Returns true if init has been called for this opmode.

Link copied to clipboard
open override val isLinear: Boolean = true

Defines whether this API requires features from LinearOpMode.

Functions

Link copied to clipboard
Link copied to clipboard
fun driveTo(direction: Encoders.Direction, inches: Double)
Link copied to clipboard
open fun init(opMode: OpMode)

Initializes this API.

Link copied to clipboard
fun spinTo(degrees: Double)