Configs that affect audible components of the device.
More...
#include <ctre/phoenix6/configs/Configs.hpp>
|
bool | BeepOnBoot = true |
| If true, the TalonFX will beep during boot-up.
|
|
bool | BeepOnConfig = true |
| If true, the TalonFX will beep during configuration API calls if device is disabled.
|
|
bool | AllowMusicDurDisable = false |
| If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.
|
|
Configs that affect audible components of the device.
Includes configuration for the beep on boot.
◆ AudioConfigs()
constexpr ctre::phoenix6::configs::AudioConfigs::AudioConfigs |
( |
| ) |
|
|
constexprdefault |
◆ Deserialize()
◆ Serialize()
std::string ctre::phoenix6::configs::AudioConfigs::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ToString()
std::string ctre::phoenix6::configs::AudioConfigs::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WithAllowMusicDurDisable()
constexpr AudioConfigs & ctre::phoenix6::configs::AudioConfigs::WithAllowMusicDurDisable |
( |
bool | newAllowMusicDurDisable | ) |
|
|
inlineconstexpr |
Modifies this configuration's AllowMusicDurDisable parameter and returns itself for method-chaining and easier to use config API.
If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state. This can be used to address corner cases when music features are needed when disabled. This setting defaults to false. Note that if the rotor is moving, music features are always disabled regardless of this setting.
- Parameters
-
newAllowMusicDurDisable | Parameter to modify |
- Returns
- Itself
◆ WithBeepOnBoot()
constexpr AudioConfigs & ctre::phoenix6::configs::AudioConfigs::WithBeepOnBoot |
( |
bool | newBeepOnBoot | ) |
|
|
inlineconstexpr |
Modifies this configuration's BeepOnBoot parameter and returns itself for method-chaining and easier to use config API.
If true, the TalonFX will beep during boot-up. This is useful for general debugging, and defaults to true. If rotor is moving during boot-up, the beep will not occur regardless of this setting.
- Parameters
-
newBeepOnBoot | Parameter to modify |
- Returns
- Itself
◆ WithBeepOnConfig()
constexpr AudioConfigs & ctre::phoenix6::configs::AudioConfigs::WithBeepOnConfig |
( |
bool | newBeepOnConfig | ) |
|
|
inlineconstexpr |
Modifies this configuration's BeepOnConfig parameter and returns itself for method-chaining and easier to use config API.
If true, the TalonFX will beep during configuration API calls if device is disabled. This is useful for general debugging, and defaults to true. Note that if the rotor is moving, the beep will not occur regardless of this setting.
- Parameters
-
newBeepOnConfig | Parameter to modify |
- Returns
- Itself
◆ AllowMusicDurDisable
bool ctre::phoenix6::configs::AudioConfigs::AllowMusicDurDisable = false |
If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.
This can be used to address corner cases when music features are needed when disabled. This setting defaults to false. Note that if the rotor is moving, music features are always disabled regardless of this setting.
◆ BeepOnBoot
bool ctre::phoenix6::configs::AudioConfigs::BeepOnBoot = true |
If true, the TalonFX will beep during boot-up.
This is useful for general debugging, and defaults to true. If rotor is moving during boot-up, the beep will not occur regardless of this setting.
◆ BeepOnConfig
bool ctre::phoenix6::configs::AudioConfigs::BeepOnConfig = true |
If true, the TalonFX will beep during configuration API calls if device is disabled.
This is useful for general debugging, and defaults to true. Note that if the rotor is moving, the beep will not occur regardless of this setting.
The documentation for this class was generated from the following file: