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

Implem of MotorSafety interface from WPILib. More...

#include <ctre/phoenix6/wpiutils/MotorSafetyImplem.hpp>

Inheritance diagram for ctre::phoenix6::wpiutils::MotorSafetyImplem:

Public Member Functions

 MotorSafetyImplem (std::function< void()> stopMotor, std::string const &description)
 Constructor for MotorSafetyImplem.
 
void StopMotor () override
 Stops the controller.
 
std::string GetDescription () const override
 

Detailed Description

Implem of MotorSafety interface from WPILib.

This also allows late/lazy construction of WPILib's motor safety object.

Constructor & Destructor Documentation

◆ MotorSafetyImplem()

ctre::phoenix6::wpiutils::MotorSafetyImplem::MotorSafetyImplem ( std::function< void()> stopMotor,
std::string const & description )
inline

Constructor for MotorSafetyImplem.

Parameters
stopMotorFunction to stop the motor
descriptionDescription of motor controller

Member Function Documentation

◆ GetDescription()

std::string ctre::phoenix6::wpiutils::MotorSafetyImplem::GetDescription ( ) const
inlineoverride
Returns
Description of motor controller

◆ StopMotor()

void ctre::phoenix6::wpiutils::MotorSafetyImplem::StopMotor ( )
inlineoverride

Stops the controller.


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