CTRE Phoenix 6 C++ 25.1.0
Loading...
Searching...
No Matches
ctre::phoenix6::signals::MeasurementHealthValue Class Reference

Health of the distance measurement. More...

#include <ctre/phoenix6/signals/SpnEnums.hpp>

Inheritance diagram for ctre::phoenix6::signals::MeasurementHealthValue:
ctre::phoenix6::ISerializable

Public Member Functions

constexpr MeasurementHealthValue (int value)
 
constexpr MeasurementHealthValue ()
 
constexpr bool operator== (MeasurementHealthValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (MeasurementHealthValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (MeasurementHealthValue data) const
 
constexpr bool operator< (int data) const
 
std::string ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const
 
- Public Member Functions inherited from ctre::phoenix6::ISerializable

Public Attributes

int value
 

Static Public Attributes

static constexpr int Good = 0
 Measurement is good.
 
static constexpr int Limited = 1
 Measurement is likely okay, but the target is either very far away or moving very quickly.
 
static constexpr int Bad = 2
 Measurement is compromised.
 

Friends

std::ostream & operator<< (std::ostream &os, MeasurementHealthValue data)
 

Detailed Description

Health of the distance measurement.

Constructor & Destructor Documentation

◆ MeasurementHealthValue() [1/2]

ctre::phoenix6::signals::MeasurementHealthValue::MeasurementHealthValue ( int value)
inlineconstexpr

◆ MeasurementHealthValue() [2/2]

ctre::phoenix6::signals::MeasurementHealthValue::MeasurementHealthValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator!= ( int data) const
inlineconstexpr

◆ operator!=() [2/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator!= ( MeasurementHealthValue data) const
inlineconstexpr

◆ operator<() [1/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator< ( int data) const
inlineconstexpr

◆ operator<() [2/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator< ( MeasurementHealthValue data) const
inlineconstexpr

◆ operator==() [1/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator== ( int data) const
inlineconstexpr

◆ operator==() [2/2]

bool ctre::phoenix6::signals::MeasurementHealthValue::operator== ( MeasurementHealthValue data) const
inlineconstexpr

◆ Serialize()

std::string ctre::phoenix6::signals::MeasurementHealthValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenix6::signals::MeasurementHealthValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
MeasurementHealthValue data )
friend

Member Data Documentation

◆ Bad

int ctre::phoenix6::signals::MeasurementHealthValue::Bad = 2
staticconstexpr

Measurement is compromised.

◆ Good

int ctre::phoenix6::signals::MeasurementHealthValue::Good = 0
staticconstexpr

Measurement is good.

◆ Limited

int ctre::phoenix6::signals::MeasurementHealthValue::Limited = 1
staticconstexpr

Measurement is likely okay, but the target is either very far away or moving very quickly.

◆ value

int ctre::phoenix6::signals::MeasurementHealthValue::value

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