Faults available to CANCoder (Currently has none)
◆ hasAnyFault()
boolean com.ctre.phoenix.sensors.CANCoderFaults.hasAnyFault |
( |
| ) |
|
|
inline |
- Returns
- true if any faults are tripped
◆ toBitfield()
int com.ctre.phoenix.sensors.CANCoderFaults.toBitfield |
( |
| ) |
|
|
inline |
- Returns
- Current fault list as a bit field
◆ update()
void com.ctre.phoenix.sensors.CANCoderFaults.update |
( |
int |
bits | ) |
|
|
inline |
Updates current fault list with specified bit field of faults
- Parameters
-
bits | bit field of faults to update with |
◆ APIError
boolean com.ctre.phoenix.sensors.CANCoderFaults.APIError |
API error detected. Make sure API and firmware versions are compatible.
◆ HardwareFault
boolean com.ctre.phoenix.sensors.CANCoderFaults.HardwareFault |
Device detects hardware failure
◆ MagnetTooWeak
boolean com.ctre.phoenix.sensors.CANCoderFaults.MagnetTooWeak |
Magnet strength is too weak to provide reliable results Make sure CANCoder is close to the magnet being used
◆ ResetDuringEn
boolean com.ctre.phoenix.sensors.CANCoderFaults.ResetDuringEn |
Device was powered-on or reset while robot is enabled. Check your breakers and wiring.
◆ UnderVoltage
boolean com.ctre.phoenix.sensors.CANCoderFaults.UnderVoltage |
The documentation for this class was generated from the following file:
- Phoenix-api/java/src/main/java/com/ctre/phoenix/sensors/CANCoderFaults.java