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

Direction of the sensor to determine positive facing the LED side of the CANcoder. More...

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

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

Public Member Functions

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

Public Attributes

int value
 

Static Public Attributes

static constexpr int CounterClockwise_Positive = 0
 
static constexpr int Clockwise_Positive = 1
 

Friends

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

Detailed Description

Direction of the sensor to determine positive facing the LED side of the CANcoder.

Constructor & Destructor Documentation

◆ SensorDirectionValue() [1/2]

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

◆ SensorDirectionValue() [2/2]

ctre::phoenixpro::signals::SensorDirectionValue::SensorDirectionValue ( )
inline

Member Function Documentation

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

std::string ctre::phoenixpro::signals::SensorDirectionValue::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 SensorDirectionValue data 
)
friend

Member Data Documentation

◆ Clockwise_Positive

constexpr int ctre::phoenixpro::signals::SensorDirectionValue::Clockwise_Positive = 1
staticconstexpr

◆ CounterClockwise_Positive

constexpr int ctre::phoenixpro::signals::SensorDirectionValue::CounterClockwise_Positive = 0
staticconstexpr

◆ value

int ctre::phoenixpro::signals::SensorDirectionValue::value

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