CuttleAnalogEncoder

Analog rotary encoder.

Constructors

Link copied to clipboard
constructor(revHub: CuttleRevHub, port: Int, offset: Double, maxVoltage: Double)

Properties

Link copied to clipboard
open var aPort: Int
Link copied to clipboard
open var hub: CuttleRevHub
Link copied to clipboard
open var maxVoltage: Double
Maximum voltage of the sensor.
Link copied to clipboard
Link copied to clipboard
open val velocity: Double

Functions

Link copied to clipboard
open fun getRotation(): Double
Get the angle of the encoder.
Link copied to clipboard
abstract fun getVelocity(): Double
Link copied to clipboard
open fun getVoltage(): Int
Get the voltage of the analog sensor.
Link copied to clipboard
open fun setDirection(direction: Direction)
Set the direction of the encoder