CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::signals::AbsoluteSensorRangeValue Class Reference

The range of the absolute sensor, either [0, 1) or [-0.5, 0.5). More...

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

Inheritance diagram for ctre::phoenixpro::signals::AbsoluteSensorRangeValue:
ctre::phoenixpro::ISerializable

Public Member Functions

 AbsoluteSensorRangeValue (int value)
 
 AbsoluteSensorRangeValue ()
 
std::string ToString () const
 Gets the string representation of this enum. More...
 
std::string Serialize () const
 
bool operator== (const AbsoluteSensorRangeValue &data) const
 
bool operator== (int data) const
 
bool operator< (const AbsoluteSensorRangeValue &data) const
 
bool operator< (int data) const
 
virtual std::string Serialize () const =0
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int Unsigned_0To1 = 0
 
static constexpr int Signed_PlusMinusHalf = 1
 

Friends

std::ostream & operator<< (std::ostream &os, const AbsoluteSensorRangeValue &data)
 

Detailed Description

The range of the absolute sensor, either [0, 1) or [-0.5, 0.5).

Constructor & Destructor Documentation

◆ AbsoluteSensorRangeValue() [1/2]

ctre::phoenixpro::signals::AbsoluteSensorRangeValue::AbsoluteSensorRangeValue ( int  value)
inline

◆ AbsoluteSensorRangeValue() [2/2]

ctre::phoenixpro::signals::AbsoluteSensorRangeValue::AbsoluteSensorRangeValue ( )
inline

Member Function Documentation

◆ operator<() [1/2]

bool ctre::phoenixpro::signals::AbsoluteSensorRangeValue::operator< ( const AbsoluteSensorRangeValue data) const
inline

◆ operator<() [2/2]

bool ctre::phoenixpro::signals::AbsoluteSensorRangeValue::operator< ( int  data) const
inline

◆ operator==() [1/2]

bool ctre::phoenixpro::signals::AbsoluteSensorRangeValue::operator== ( const AbsoluteSensorRangeValue data) const
inline

◆ operator==() [2/2]

bool ctre::phoenixpro::signals::AbsoluteSensorRangeValue::operator== ( int  data) const
inline

◆ Serialize()

std::string ctre::phoenixpro::signals::AbsoluteSensorRangeValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenixpro::signals::AbsoluteSensorRangeValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ Signed_PlusMinusHalf

constexpr int ctre::phoenixpro::signals::AbsoluteSensorRangeValue::Signed_PlusMinusHalf = 1
staticconstexpr

◆ Unsigned_0To1

constexpr int ctre::phoenixpro::signals::AbsoluteSensorRangeValue::Unsigned_0To1 = 0
staticconstexpr

◆ value

int ctre::phoenixpro::signals::AbsoluteSensorRangeValue::value

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