CTRE Phoenix C++ 5.33.0
ctre::phoenix::motorcontrol::StickyFaults Struct Reference

All the sticky faults available to motor controllers. More...

#include <ctre/phoenix/motorcontrol/StickyFaults.h>

Public Member Functions

bool HasAnyFault () const
 
int ToBitfield () const
 
 StickyFaults (int bits)
 Creates fault list with specified bit field of faults. More...
 
 StickyFaults ()
 
std::string ToString ()
 

Public Attributes

bool UnderVoltage
 Motor Controller is under 6.5V. More...
 
bool ForwardLimitSwitch
 Forward limit switch is tripped and device is trying to go forward Only trips when the device is limited. More...
 
bool ReverseLimitSwitch
 Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limited. More...
 
bool ForwardSoftLimit
 Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limited. More...
 
bool ReverseSoftLimit
 Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limited. More...
 
bool ResetDuringEn
 Device was powered-on or reset while robot is enabled. More...
 
bool SensorOverflow
 Device's sensor overflowed. More...
 
bool SensorOutOfPhase
 Device detects its sensor is out of phase. More...
 
bool HardwareESDReset
 Not used,. More...
 
bool RemoteLossOfSignal
 Remote Sensor is no longer detected on bus. More...
 
bool APIError
 Device detects an API error. More...
 
bool SupplyOverV
 Supply is well above the rated voltage of the hardware. More...
 
bool SupplyUnstable
 Supply is rapidly fluctuating and unstable. More...
 

Detailed Description

All the sticky faults available to motor controllers.

Constructor & Destructor Documentation

◆ StickyFaults() [1/2]

ctre::phoenix::motorcontrol::StickyFaults::StickyFaults ( int  bits)
inline

Creates fault list with specified bit field of faults.

Parameters
bitsbit field of faults to update with

◆ StickyFaults() [2/2]

ctre::phoenix::motorcontrol::StickyFaults::StickyFaults ( )
inline

Member Function Documentation

◆ HasAnyFault()

bool ctre::phoenix::motorcontrol::StickyFaults::HasAnyFault ( ) const
inline
Returns
true if any faults are tripped

◆ ToBitfield()

int ctre::phoenix::motorcontrol::StickyFaults::ToBitfield ( ) const
inline
Returns
Current fault list as a bit field

◆ ToString()

std::string ctre::phoenix::motorcontrol::StickyFaults::ToString ( )
inline
Returns
string representation of current faults tripped

Member Data Documentation

◆ APIError

bool ctre::phoenix::motorcontrol::StickyFaults::APIError

Device detects an API error.

◆ ForwardLimitSwitch

bool ctre::phoenix::motorcontrol::StickyFaults::ForwardLimitSwitch

Forward limit switch is tripped and device is trying to go forward Only trips when the device is limited.

◆ ForwardSoftLimit

bool ctre::phoenix::motorcontrol::StickyFaults::ForwardSoftLimit

Sensor is beyond forward soft limit and device is trying to go forward Only trips when the device is limited.

◆ HardwareESDReset

bool ctre::phoenix::motorcontrol::StickyFaults::HardwareESDReset

Not used,.

See also
ResetDuringEn

◆ RemoteLossOfSignal

bool ctre::phoenix::motorcontrol::StickyFaults::RemoteLossOfSignal

Remote Sensor is no longer detected on bus.

◆ ResetDuringEn

bool ctre::phoenix::motorcontrol::StickyFaults::ResetDuringEn

Device was powered-on or reset while robot is enabled.

Check your breakers and wiring.

◆ ReverseLimitSwitch

bool ctre::phoenix::motorcontrol::StickyFaults::ReverseLimitSwitch

Reverse limit switch is tripped and device is trying to go reverse Only trips when the device is limited.

◆ ReverseSoftLimit

bool ctre::phoenix::motorcontrol::StickyFaults::ReverseSoftLimit

Sensor is beyond reverse soft limit and device is trying to go reverse Only trips when the device is limited.

◆ SensorOutOfPhase

bool ctre::phoenix::motorcontrol::StickyFaults::SensorOutOfPhase

Device detects its sensor is out of phase.

◆ SensorOverflow

bool ctre::phoenix::motorcontrol::StickyFaults::SensorOverflow

Device's sensor overflowed.

◆ SupplyOverV

bool ctre::phoenix::motorcontrol::StickyFaults::SupplyOverV

Supply is well above the rated voltage of the hardware.

This fault is specific to Brushless.

◆ SupplyUnstable

bool ctre::phoenix::motorcontrol::StickyFaults::SupplyUnstable

Supply is rapidly fluctuating and unstable.

This fault is specific to Brushless.

◆ UnderVoltage

bool ctre::phoenix::motorcontrol::StickyFaults::UnderVoltage

Motor Controller is under 6.5V.


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