API

abstract class API

An API is shared code used by OpModes.

APIs are used to abstract over common tasks, such as controlling the wheels, that can be shared by multiple OpModes. The must be initialized by the OpMode that uses them.

Inheritors

Constructors

Link copied to clipboard
constructor()

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 val isLinear: Boolean = false

Defines whether this API requires features from LinearOpMode.

Functions

Link copied to clipboard
open fun init(opMode: OpMode)

Initializes this API.