CTRE Phoenix 6 C++ 26.70.0-alpha-2
Loading...
Searching...
No Matches
ctre::phoenix6::signals::BridgeOutputValue Struct Reference

The applied output of the bridge. More...

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

Public Member Functions

constexpr BridgeOutputValue (int value)
constexpr BridgeOutputValue ()
constexpr bool operator== (BridgeOutputValue other) const
constexpr auto operator<=> (BridgeOutputValue other) const
constexpr std::string_view ToString () const
 Gets the string representation of this enum.

Public Attributes

int value
 Unique integer value of this BridgeOutputValue.

Static Public Attributes

static constexpr int BridgeReq_Coast = 0
 Coasting.
static constexpr int BridgeReq_Brake = 1
 Braking.
static constexpr int BridgeReq_Trapez = 6
 Driving with non-FOC duty cycle/voltage control.
static constexpr int BridgeReq_FOCTorque = 7
 Driving with FOC torque control.
static constexpr int BridgeReq_MusicTone = 8
 Playing music.
static constexpr int BridgeReq_FOCEasy = 9
 Driving with FOC duty cycle/voltage control.
static constexpr int BridgeReq_FaultBrake = 12
 Fault braking.
static constexpr int BridgeReq_FaultCoast = 13
 Fault coasting.
static constexpr int BridgeReq_ActiveBrake = 14
 Active braking.
static constexpr int BridgeReq_VariableBrake = 15
 Variable braking.

Friends

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

Detailed Description

The applied output of the bridge.

Constructor & Destructor Documentation

◆ BridgeOutputValue() [1/2]

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

◆ BridgeOutputValue() [2/2]

ctre::phoenix6::signals::BridgeOutputValue::BridgeOutputValue ( )
inlineconstexpr

Member Function Documentation

◆ operator<=>()

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

◆ operator==()

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

◆ ToString()

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

Gets the string representation of this enum.

Returns
String representation of this enum

◆ operator<<

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

Member Data Documentation

◆ BridgeReq_ActiveBrake

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_ActiveBrake = 14
staticconstexpr

Active braking.

◆ BridgeReq_Brake

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_Brake = 1
staticconstexpr

Braking.

◆ BridgeReq_Coast

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_Coast = 0
staticconstexpr

Coasting.

◆ BridgeReq_FaultBrake

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_FaultBrake = 12
staticconstexpr

Fault braking.

◆ BridgeReq_FaultCoast

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_FaultCoast = 13
staticconstexpr

Fault coasting.

◆ BridgeReq_FOCEasy

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_FOCEasy = 9
staticconstexpr

Driving with FOC duty cycle/voltage control.

◆ BridgeReq_FOCTorque

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_FOCTorque = 7
staticconstexpr

Driving with FOC torque control.

◆ BridgeReq_MusicTone

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_MusicTone = 8
staticconstexpr

Playing music.

◆ BridgeReq_Trapez

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_Trapez = 6
staticconstexpr

Driving with non-FOC duty cycle/voltage control.

◆ BridgeReq_VariableBrake

int ctre::phoenix6::signals::BridgeOutputValue::BridgeReq_VariableBrake = 15
staticconstexpr

Variable braking.

◆ value

int ctre::phoenix6::signals::BridgeOutputValue::value

Unique integer value of this BridgeOutputValue.


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