CANSensor

class rev.CANSensor

Bases: pybind11_builtins.pybind11_object

getInverted(self: rev.CANSensor) → bool

Get the phase of the CANSensor. This will just return false if the user tries to get the inversion of the hall effect.

setInverted(self: rev.CANSensor, inverted: bool)rev.CANError

Set the phase of the CANSensor so that it is set to be in phase with the motor itself. This only works for quadrature encoders and analog sensors. This will throw an error if the user tries to set the inversion of the hall effect.