CTRE Phoenix 6 C++ 24.2.0
ctre::phoenix6::controls::EmptyControl Class Reference

Generic Empty Control class used to do nothing. More...

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

Inheritance diagram for ctre::phoenix6::controls::EmptyControl:
ctre::phoenix6::controls::ControlRequest

Public Member Functions

 EmptyControl ()
 Constructs an empty control request. More...
 
std::map< std::string, std::string > GetControlInfo () const override
 Gets information about this control request. More...
 
std::string ToString () const override
 
- Public Member Functions inherited from ctre::phoenix6::controls::ControlRequest
 ControlRequest (std::string name)
 Constructs a new Control Request with the given name. More...
 
std::string const & GetName () const
 
virtual std::map< std::string, std::string > GetControlInfo () const =0
 Gets information about this control request. More...
 
virtual ~ControlRequest ()=default
 
virtual std::string ToString () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from ctre::phoenix6::controls::ControlRequest
 ControlRequest (ControlRequest const &)=default
 
 ControlRequest (ControlRequest &&)=default
 
ControlRequestoperator= (ControlRequest const &)=default
 
ControlRequestoperator= (ControlRequest &&)=default
 
- Protected Attributes inherited from ctre::phoenix6::controls::ControlRequest
std::string name
 

Detailed Description

Generic Empty Control class used to do nothing.

Constructor & Destructor Documentation

◆ EmptyControl()

ctre::phoenix6::controls::EmptyControl::EmptyControl ( )
inline

Constructs an empty control request.

Member Function Documentation

◆ GetControlInfo()

std::map< std::string, std::string > ctre::phoenix6::controls::EmptyControl::GetControlInfo ( ) const
inlineoverridevirtual

Gets information about this control request.

Returns
Map of control parameter names and corresponding applied values

Implements ctre::phoenix6::controls::ControlRequest.

◆ ToString()

std::string ctre::phoenix6::controls::EmptyControl::ToString ( ) const
inlineoverridevirtual

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