Package com.ctre.phoenix.sensors
Class CANCoderFaults
java.lang.Object
com.ctre.phoenix.sensors.CANCoderFaults
Deprecated, for removal: This API element is subject to removal in a future version.
Faults available to CANCoder (Currently has none)
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.API error detected.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Device detects hardware failureboolean
Deprecated, for removal: This API element is subject to removal in a future version.Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being usedboolean
Deprecated, for removal: This API element is subject to removal in a future version.Device was powered-on or reset while robot is enabled.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Device is under 6.5V -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.void
update
(int bits) Deprecated, for removal: This API element is subject to removal in a future version.Updates current fault list with specified bit field of faults
-
Field Details
-
HardwareFault
Deprecated, for removal: This API element is subject to removal in a future version.Device detects hardware failure -
APIError
Deprecated, for removal: This API element is subject to removal in a future version.API error detected. Make sure API and firmware versions are compatible. -
UnderVoltage
Deprecated, for removal: This API element is subject to removal in a future version.Device is under 6.5V -
ResetDuringEn
Deprecated, for removal: This API element is subject to removal in a future version.Device was powered-on or reset while robot is enabled. Check your breakers and wiring. -
MagnetTooWeak
Deprecated, for removal: This API element is subject to removal in a future version.Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being used
-
-
Constructor Details
-
CANCoderFaults
public CANCoderFaults()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
hasAnyFault
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- true if any faults are tripped
-
toBitfield
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Current fault list as a bit field
-
update
Deprecated, for removal: This API element is subject to removal in a future version.Updates current fault list with specified bit field of faults- Parameters:
bits
- bit field of faults to update with
-
If the Phoenix 5 API must be used for this device, the device must have 22.X firmware. This firmware is available in Tuner X after selecting Phoenix 5 in the firmware year dropdown.