StickyFaults

class phoenix5.StickyFaults(*args, **kwargs)

Bases: pybind11_object

All the sticky faults available to motor controllers

Overloaded function.

  1. __init__(self: phoenix5._ctre.StickyFaults, bits: int) -> None

Creates fault list with specified bit field of faults

Parameters:

bits – bit field of faults to update with

  1. __init__(self: phoenix5._ctre.StickyFaults) -> None

property APIError

Device detects an API error

property ForwardLimitSwitch

Forward limit switch is tripped and device is trying to go forward Only trips when the device is limited

property ForwardSoftLimit

Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limited

property HardwareESDReset

Not used, @see #ResetDuringEn

property RemoteLossOfSignal

Remote Sensor is no longer detected on bus

property ResetDuringEn

Device was powered-on or reset while robot is enabled. Check your breakers and wiring.

property ReverseLimitSwitch

Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limited

property ReverseSoftLimit

Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limited

property SensorOutOfPhase

Device detects its sensor is out of phase

property SensorOverflow

Device’s sensor overflowed

property SupplyOverV

Supply is well above the rated voltage of the hardware. This fault is specific to Brushless.

property SupplyUnstable

Supply is rapidly fluctuating and unstable. This fault is specific to Brushless.

property UnderVoltage

Motor Controller is under 6.5V

hasAnyFault() bool
Returns:

true if any faults are tripped

toBitfield() int
Returns:

Current fault list as a bit field