Class AudioConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class AudioConfigs extends Object implements ParentConfiguration
Includes configuration for the beep on boot.
-
Field Summary
Fields Modifier and Type Field Description boolean
AllowMusicDurDisable
If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.boolean
BeepOnBoot
If true, the TalonFX will beep during boot-up.boolean
BeepOnConfig
If true, the TalonFX will beep during configuration API calls if device is disabled. -
Constructor Summary
Constructors Constructor Description AudioConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String to_deserialize)
String
serialize()
String
toString()
AudioConfigs
withAllowMusicDurDisable(boolean newAllowMusicDurDisable)
Modifies this configuration's AllowMusicDurDisable parameter and returns itself for method-chaining and easier to use config API.AudioConfigs
withBeepOnBoot(boolean newBeepOnBoot)
Modifies this configuration's BeepOnBoot parameter and returns itself for method-chaining and easier to use config API.AudioConfigs
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
-