CTRE_Phoenix  5.19.4
com.ctre.phoenix.sensors.CANCoderStickyFaults Class Reference

Public Member Functions

boolean hasAnyFault ()
int toBitfield ()
void update (int bits)

Public Attributes

boolean HardwareFault
boolean APIError
boolean UnderVoltage
boolean ResetDuringEn
boolean MagnetTooWeak

Detailed Description

Sticky Faults available to CANCoder (Currently has none)

Member Function Documentation

◆ hasAnyFault()

boolean com.ctre.phoenix.sensors.CANCoderStickyFaults.hasAnyFault ( )
true if any faults are tripped

◆ toBitfield()

int com.ctre.phoenix.sensors.CANCoderStickyFaults.toBitfield ( )
Current fault list as a bit field

◆ update()

void com.ctre.phoenix.sensors.CANCoderStickyFaults.update ( int  bits)

Updates current sticky fault list with specified bit field of faults

bitsbit field of sticky faults to update with

Member Data Documentation

◆ APIError

boolean com.ctre.phoenix.sensors.CANCoderStickyFaults.APIError

API error detected. Make sure API and firmware versions are compatible.

◆ HardwareFault

boolean com.ctre.phoenix.sensors.CANCoderStickyFaults.HardwareFault

Device detects hardware failure

◆ MagnetTooWeak

boolean com.ctre.phoenix.sensors.CANCoderStickyFaults.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.CANCoderStickyFaults.ResetDuringEn

Device was powered-on or reset while robot is enabled. Check your breakers and wiring.

◆ UnderVoltage

boolean com.ctre.phoenix.sensors.CANCoderStickyFaults.UnderVoltage

Device is under 6.5V

The documentation for this class was generated from the following file: