CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::signals::UpdateModeValue Class Reference

Update mode of the CANrange. More...

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

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

Public Member Functions

constexpr UpdateModeValue (int value)
 
constexpr UpdateModeValue ()
 
constexpr bool operator== (UpdateModeValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (UpdateModeValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (UpdateModeValue data) const
 
constexpr bool operator< (int data) const
 
std::string ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int ShortRange100Hz = 0
 Updates distance/proximity at 100hz using short-range detection mode.
 
static constexpr int ShortRangeUserFreq = 1
 Uses short-range detection mode for improved detection under high ambient infrared light conditions.
 
static constexpr int LongRangeUserFreq = 2
 Uses long-range detection mode and user-specified update frequency.
 

Friends

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

Detailed Description

Update mode of the CANrange.

The CANrange supports short-range and long-range detection at various update frequencies.

Constructor & Destructor Documentation

◆ UpdateModeValue() [1/2]

constexpr ctre::phoenix6::signals::UpdateModeValue::UpdateModeValue ( int value)
inlineconstexpr

◆ UpdateModeValue() [2/2]

constexpr ctre::phoenix6::signals::UpdateModeValue::UpdateModeValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

std::string ctre::phoenix6::signals::UpdateModeValue::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,
UpdateModeValue data )
friend

Member Data Documentation

◆ LongRangeUserFreq

constexpr int ctre::phoenix6::signals::UpdateModeValue::LongRangeUserFreq = 2
staticconstexpr

Uses long-range detection mode and user-specified update frequency.

◆ ShortRange100Hz

constexpr int ctre::phoenix6::signals::UpdateModeValue::ShortRange100Hz = 0
staticconstexpr

Updates distance/proximity at 100hz using short-range detection mode.

◆ ShortRangeUserFreq

constexpr int ctre::phoenix6::signals::UpdateModeValue::ShortRangeUserFreq = 1
staticconstexpr

Uses short-range detection mode for improved detection under high ambient infrared light conditions.

Uses user-specified update frequency.

◆ value

int ctre::phoenix6::signals::UpdateModeValue::value

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