SparkRelativeEncoder

class rev.SparkRelativeEncoder

Bases: SparkMaxRelativeEncoder

Get an instance of this class by using CANSparkBase::GetEncoder() or CANSparkBase::GetEncoder(SparkRelativeEncoder::Type, int).

class Type(value: int)

Bases: pybind11_object

The type of encoder connected to a SPARK

Members:

kNoSensor

kHallSensor

kQuadrature

kHallSensor = <Type.kHallSensor: 1>
kNoSensor = <Type.kNoSensor: 0>
kQuadrature = <Type.kQuadrature: 2>
property name
property value