Class AudioConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
Includes configuration for the beep on boot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.boolean
If true, the TalonFX will beep during boot-up.boolean
If true, the TalonFX will beep during configuration API calls if device is disabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String to_deserialize) toString()
withAllowMusicDurDisable
(boolean newAllowMusicDurDisable) Modifies this configuration's AllowMusicDurDisable parameter and returns itself for method-chaining and easier to use config API.withBeepOnBoot
(boolean newBeepOnBoot) Modifies this configuration's BeepOnBoot parameter and returns itself for method-chaining and easier to use config API.withBeepOnConfig
(boolean newBeepOnConfig) Modifies this configuration's BeepOnConfig parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
BeepOnBoot
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.- Default Value: True
-
BeepOnConfig
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.- Default Value: True
-
AllowMusicDurDisable
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.- Default Value: False
-
-
Constructor Details
-
AudioConfigs
public AudioConfigs()
-
-
Method Details
-
withBeepOnBoot
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.
- Default Value: True
- Parameters:
newBeepOnBoot
- Parameter to modify- Returns:
- Itself
-
withBeepOnConfig
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.
- Default Value: True
- Parameters:
newBeepOnConfig
- Parameter to modify- Returns:
- Itself
-
withAllowMusicDurDisable
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.
- Default Value: False
- Parameters:
newAllowMusicDurDisable
- Parameter to modify- Returns:
- Itself
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-