CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
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.
 
std::map< std::string, std::string > GetControlInfo () const override
 Gets information about this control request.
 
std::string ToString () const override
 
EmptyControlWithUpdateFreqHz (units::frequency::hertz_t)
 
- Public Member Functions inherited from ctre::phoenix6::controls::ControlRequest
 ControlRequest (std::string name)
 Constructs a new Control Request with the given name.
 
std::string const & GetName () const
 
virtual ~ControlRequest ()=default
 

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

◆ WithUpdateFreqHz()

EmptyControl & ctre::phoenix6::controls::EmptyControl::WithUpdateFreqHz ( units::frequency::hertz_t )
inline

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