MotorEx

class MotorEx(val motor: DcMotorEx) : Controllable

Wrapper class for motors that implements controllable (and can therefore be used with RunToPosition commands).

Constructors

Link copied to clipboard
constructor(name: String)
constructor(motor: DcMotorEx)

Properties

Link copied to clipboard

The tolerance that must be surpassed in order to update the motors power. Defaults to 0.01.

Link copied to clipboard
open override var currentPosition: Double

This returns the current position of the motor, accounting for any offsets created by manually settings its currentPosition.

Link copied to clipboard
var direction: DcMotorSimple.Direction
Link copied to clipboard
val motor: DcMotorEx
Link copied to clipboard
open override var power: Double

Gets / sets the current power of the motor (automatically implements power caching)

Link copied to clipboard

Gives the unmodified raw tick value of the motor

Link copied to clipboard
open override var velocity: Double

Current velocity of the motor. Setter does nothing

Functions

Link copied to clipboard
Link copied to clipboard