toggle menu
Cuttlefish Documentation
androidJvm
switch theme
search in API
CuttlefishFTCBridge
/
com.roboctopi.cuttlefishftcbridge.devices
/
CuttleAnalogEncoder
Cuttle
Analog
Encoder
open
class
CuttleAnalogEncoder
:
RotaryEncoder
Analog rotary encoder.
Members
Constructors
Cuttle
Analog
Encoder
Link copied to clipboard
constructor
(
revHub
:
CuttleRevHub
,
port
:
Int
,
offset
:
Double
,
maxVoltage
:
Double
)
Properties
a
Port
Link copied to clipboard
open
var
aPort
:
Int
hub
Link copied to clipboard
open
var
hub
:
CuttleRevHub
max
Voltage
Link copied to clipboard
open
var
maxVoltage
:
Double
Maximum voltage of the sensor.
rotation
Offset
Link copied to clipboard
open
var
rotationOffset
:
Double
velocity
Link copied to clipboard
open
val
velocity
:
Double
Functions
get
Rotation
Link copied to clipboard
open
fun
getRotation
(
)
:
Double
Get the angle of the encoder.
get
Velocity
Link copied to clipboard
abstract
fun
getVelocity
(
)
:
Double
get
Voltage
Link copied to clipboard
open
fun
getVoltage
(
)
:
Int
Get the voltage of the analog sensor.
set
Direction
Link copied to clipboard
open
fun
setDirection
(
direction
:
Direction
)
Set the direction of the encoder