CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::controls::ControlRequest Class Referenceabstract

Abstract Control Request class that other control requests extend for use. More...

#include <ctre/phoenixpro/controls/ControlRequest.hpp>

Inheritance diagram for ctre::phoenixpro::controls::ControlRequest:
ctre::phoenixpro::controls::CoastOut ctre::phoenixpro::controls::DutyCycleOut ctre::phoenixpro::controls::EmptyControl ctre::phoenixpro::controls::Follower ctre::phoenixpro::controls::MotionMagicDutyCycle ctre::phoenixpro::controls::MotionMagicTorqueCurrentFOC ctre::phoenixpro::controls::MotionMagicVoltage ctre::phoenixpro::controls::NeutralOut ctre::phoenixpro::controls::PositionDutyCycle ctre::phoenixpro::controls::PositionTorqueCurrentFOC ctre::phoenixpro::controls::PositionVoltage ctre::phoenixpro::controls::StaticBrake ctre::phoenixpro::controls::StrictFollower ctre::phoenixpro::controls::TorqueCurrentFOC ctre::phoenixpro::controls::VelocityDutyCycle ctre::phoenixpro::controls::VelocityTorqueCurrentFOC ctre::phoenixpro::controls::VelocityVoltage ctre::phoenixpro::controls::VoltageOut

Public Member Functions

 ControlRequest (std::string name)
 Constructs a new Control Request with the given name. More...
 
ControlInfoGetControlInfo ()
 Gets information about this control request. More...
 
const ControlInfoGetControlInfo () const
 Gets information about this control request. More...
 
virtual ~ControlRequest ()=default
 
virtual std::string ToString () const =0
 

Protected Member Functions

 ControlRequest (ControlRequest const &)=default
 
 ControlRequest (ControlRequest &&)=default
 
ControlRequestoperator= (ControlRequest const &)=default
 
ControlRequestoperator= (ControlRequest &&)=default
 

Protected Attributes

ControlInfo requestReference
 

Detailed Description

Abstract Control Request class that other control requests extend for use.

Constructor & Destructor Documentation

◆ ControlRequest() [1/3]

ctre::phoenixpro::controls::ControlRequest::ControlRequest ( ControlRequest const &  )
protecteddefault

◆ ControlRequest() [2/3]

ctre::phoenixpro::controls::ControlRequest::ControlRequest ( ControlRequest &&  )
protecteddefault

◆ ControlRequest() [3/3]

ctre::phoenixpro::controls::ControlRequest::ControlRequest ( std::string  name)
inline

Constructs a new Control Request with the given name.

Parameters
nameName of the control request

◆ ~ControlRequest()

virtual ctre::phoenixpro::controls::ControlRequest::~ControlRequest ( )
virtualdefault

Member Function Documentation

◆ GetControlInfo() [1/2]

ControlInfo & ctre::phoenixpro::controls::ControlRequest::GetControlInfo ( )
inline

Gets information about this control request.

Returns
An instance of ControlInfo containing information about this control request

◆ GetControlInfo() [2/2]

const ControlInfo & ctre::phoenixpro::controls::ControlRequest::GetControlInfo ( ) const
inline

Gets information about this control request.

Returns
An instance of ControlInfo containing information about this control request

◆ operator=() [1/2]

ControlRequest & ctre::phoenixpro::controls::ControlRequest::operator= ( ControlRequest &&  )
protecteddefault

◆ operator=() [2/2]

ControlRequest & ctre::phoenixpro::controls::ControlRequest::operator= ( ControlRequest const &  )
protecteddefault

◆ ToString()

Member Data Documentation

◆ requestReference

ControlInfo ctre::phoenixpro::controls::ControlRequest::requestReference
protected

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