Package com.ctre.phoenix.motorcontrol
Class StickyFaults
java.lang.Object
com.ctre.phoenix.motorcontrol.StickyFaults
public class StickyFaults extends Object
All the sticky faults available to motor controllers
-
Field Summary
Fields Modifier and Type Field Description boolean
APIError
API error detected.boolean
ForwardLimitSwitch
Forward limit switch is tripped and device is trying to go forward Only trips when the device is limitedboolean
ForwardSoftLimit
Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limitedboolean
HardwareESDReset
Not used, @see ResetDuringEnboolean
RemoteLossOfSignal
Remote Sensor is no longer detected on busboolean
ResetDuringEn
Device was powered-on or reset while robot is enabled.boolean
ReverseLimitSwitch
Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limitedboolean
ReverseSoftLimit
Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limitedboolean
SensorOutOfPhase
Device detects its sensor is out of phaseboolean
SensorOverflow
Device's sensor overflowedboolean
SupplyOverV
Supply is well above the rated voltage of the hardware.boolean
SupplyUnstable
Supply is rapidly fluctuating and unstable.boolean
UnderVoltage
Motor Controller is under 6.5V -
Constructor Summary
Constructors Constructor Description StickyFaults()
-
Method Summary
Modifier and Type Method Description boolean
hasAnyFault()
int
toBitfield()
String
toString()
void
update(int bits)
Updates current fault list with specified bit field of faults
-
Field Details
-
UnderVoltage
Motor Controller is under 6.5V -
ForwardLimitSwitch
Forward limit switch is tripped and device is trying to go forward Only trips when the device is limited -
ReverseLimitSwitch
Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limited -
ForwardSoftLimit
Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limited -
ReverseSoftLimit
Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limited -
ResetDuringEn
Device was powered-on or reset while robot is enabled. Check your breakers and wiring. -
SensorOverflow
Device's sensor overflowed -
SensorOutOfPhase
Device detects its sensor is out of phase -
HardwareESDReset
Not used, @see ResetDuringEn -
RemoteLossOfSignal
Remote Sensor is no longer detected on bus -
APIError
API error detected. Make sure API and firmware versions are compatible. -
SupplyOverV
Supply is well above the rated voltage of the hardware. This fault is specific to Brushless. -
SupplyUnstable
Supply is rapidly fluctuating and unstable. This fault is specific to Brushless.
-
-
Constructor Details
-
StickyFaults
public StickyFaults()
-
-
Method Details
-
hasAnyFault
- Returns:
- true if any faults are tripped
-
toBitfield
- Returns:
- Current fault list as a bit field
-
update
Updates current fault list with specified bit field of faults- Parameters:
bits
- bit field of faults to update with
-
toString
-