CTRE_Phoenix 5.20.2
ctre::phoenix::sensors::PigeonIMU_Faults Struct Reference

#include <PigeonIMU_Faults.h>

Public Member Functions

bool HasAnyFault () const
 
uint64_t ToBitfield () const
 
void Update (uint64_t bits)
 
 PigeonIMU_Faults (uint64_t bits)
 

Detailed Description

Sticky faults available to Pigeon

Constructor & Destructor Documentation

◆ PigeonIMU_Faults()

ctre::phoenix::sensors::PigeonIMU_Faults::PigeonIMU_Faults ( uint64_t  bits)
inline

Creates fault list with specified bit field of faults

Parameters
bitsbit field of faults to update with

Member Function Documentation

◆ HasAnyFault()

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

◆ ToBitfield()

uint64_t ctre::phoenix::sensors::PigeonIMU_Faults::ToBitfield ( ) const
inline
Returns
Current fault list as a bit field

◆ Update()

void ctre::phoenix::sensors::PigeonIMU_Faults::Update ( uint64_t  bits)
inline

Updates current fault list with specified bit field of faults

Parameters
bitsbit field of faults to update with

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