Deadwheel

open class Deadwheel : HardwareDevice

Wraps a motor instance to provide corrected velocity counts and allow reversing independently of the corresponding slot's motor direction

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor(motor: DcMotor, clock: NanoClock)
Constructs a new Encoder instance.
constructor(motor: DcMotor)
Constructs a new Encoder instance.

Types

Link copied to clipboard
Direction of encoder counts

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
Link copied to clipboard
Uses velocity estimates gathered in getCurrentPosition to estimate the upper bits of velocity that are lost in overflow due to velocity being transmitted as 16 bits.
Link copied to clipboard
Gets the position from the underlying motor and adjusts for the set direction.
Link copied to clipboard
open fun getDeviceName(): String
Link copied to clipboard
open fun getManufacturer(): HardwareDevice.Manufacturer
Link copied to clipboard
Gets the velocity directly from the underlying motor and compensates for the direction See getCorrectedVelocity for high (>2^15) counts per second velocities (such as on REV Through Bore)
Link copied to clipboard
open fun getVersion(): Int