CTRE Phoenix 6 C++ 26.0.0-beta-1
Loading...
Searching...
No Matches
ctre::phoenix6::signals::MeasurementHealthValue Struct 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 other) const
 
constexpr auto operator<=> (MeasurementHealthValue other) const
 
constexpr std::string_view ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const override
 
- 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

CTREXPORT friend 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<=>()

auto ctre::phoenix6::signals::MeasurementHealthValue::operator<=> ( MeasurementHealthValue other) const
inlineconstexpr

◆ operator==()

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

◆ Serialize()

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

◆ ToString()

std::string_view ctre::phoenix6::signals::MeasurementHealthValue::ToString ( ) const
inlineconstexpr

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

CTREXPORT friend 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 struct was generated from the following file: