CTRE Phoenix 6 C++ 25.3.1
|
Contains all control functions available for motors that support playing music. More...
#include <ctre/phoenix6/hardware/traits/SupportsMusic.hpp>
Public Member Functions | |
virtual | ~SupportsMusic ()=default |
virtual ctre::phoenix::StatusCode | SetControl (const controls::MusicTone &request)=0 |
Plays a single tone at the user specified frequency. | |
virtual ctre::phoenix::StatusCode | SetControl (const controls::ControlRequest &request)=0 |
Control device with generic control request object. | |
Contains all control functions available for motors that support playing music.
|
virtualdefault |
|
pure virtual |
Control device with generic control request object.
User must make sure the specified object is castable to a valid control request, otherwise this function will fail at run-time and return the NotSupported StatusCode
request | Control object to request of the device |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFX, and ctre::phoenix6::hardware::traits::CommonTalonWithFOC.
|
pure virtual |
Plays a single tone at the user specified frequency.
request | Control object to request of the device |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFX, and ctre::phoenix6::hardware::traits::CommonTalonWithFOC.