Class AudioConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable,Cloneable
Includes configuration for the beep on boot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIf true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.booleanIf true, the TalonFX will beep during boot-up.booleanIf true, the TalonFX will beep during configuration API calls if device is disabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration group.final StringGet the serialized form of this configuration group.toString()final AudioConfigswithAllowMusicDurDisable(boolean newAllowMusicDurDisable) Modifies this configuration's AllowMusicDurDisable parameter and returns itself for method-chaining and easier to use config API.final AudioConfigswithBeepOnBoot(boolean newBeepOnBoot) Modifies this configuration's BeepOnBoot parameter and returns itself for method-chaining and easier to use config API.final AudioConfigswithBeepOnConfig(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
-
serialize
Get the serialized form of this configuration group.- Specified by:
serializein interfaceISerializable- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration group.- Specified by:
deserializein interfaceParentConfiguration- Returns:
- Return code of the deserialize method
-
clone
-