Package com.ctre.phoenix.motorcontrol
Class Faults
java.lang.Object
com.ctre.phoenix.motorcontrol.Faults
All the faults available to motor controllers
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
API error detected.boolean
Forward limit switch is tripped and device is trying to go forward Only trips when the device is limitedboolean
Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limitedboolean
Not used, @see ResetDuringEnboolean
Device detects hardware failureboolean
Remote Sensor is no longer detected on busboolean
Device was powered-on or reset while robot is enabled.boolean
Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limitedboolean
Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limitedboolean
Device detects its sensor is out of phaseboolean
Device's sensor overflowedboolean
Supply is well above the rated voltage of the hardware.boolean
Supply is rapidly fluctuating and unstable.boolean
Motor Controller is under 6.5V -
Constructor Summary
Constructors -
Method Summary
-
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 -
HardwareFailure
Device detects hardware failure -
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
-
Faults
public Faults()
-
-
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
-