Package com.ctre.phoenix.motorcontrol
Class StickyFaults
java.lang.Object
com.ctre.phoenix.motorcontrol.StickyFaults
All the sticky faults available to motor controllers
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanAPI error detected.booleanForward limit switch is tripped and device is trying to go forward Only trips when the device is limitedbooleanSensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limitedbooleanNot used, @see ResetDuringEnbooleanRemote Sensor is no longer detected on busbooleanDevice was powered-on or reset while robot is enabled.booleanReverse limit switch is tripped and device is trying to go reverse Only trips when the device is limitedbooleanSensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limitedbooleanDevice detects its sensor is out of phasebooleanDevice's sensor overflowedbooleanSupply is well above the rated voltage of the hardware.booleanSupply is rapidly fluctuating and unstable.booleanMotor 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 -
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
-