Package com.ctre.phoenix6.configs
Class CustomParamsConfigs
java.lang.Object
com.ctre.phoenix6.configs.CustomParamsConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable,Cloneable
Custom Params.
Custom paramaters that have no real impact on controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintCustom parameter 0.intCustom parameter 1. -
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 CustomParamsConfigswithCustomParam0(int newCustomParam0) Modifies this configuration's CustomParam0 parameter and returns itself for method-chaining and easier to use config API.final CustomParamsConfigswithCustomParam1(int newCustomParam1) Modifies this configuration's CustomParam1 parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
CustomParam0
public int CustomParam0Custom parameter 0. This is provided to allow end-applications to store persistent information in the device.- Minimum Value: -32768
- Maximum Value: 32767
- Default Value: 0
- Units:
-
CustomParam1
public int CustomParam1Custom parameter 1. This is provided to allow end-applications to store persistent information in the device.- Minimum Value: -32768
- Maximum Value: 32767
- Default Value: 0
- Units:
-
-
Constructor Details
-
CustomParamsConfigs
public CustomParamsConfigs()
-
-
Method Details
-
withCustomParam0
Modifies this configuration's CustomParam0 parameter and returns itself for method-chaining and easier to use config API.Custom parameter 0. This is provided to allow end-applications to store persistent information in the device.
- Minimum Value: -32768
- Maximum Value: 32767
- Default Value: 0
- Units:
- Parameters:
newCustomParam0- Parameter to modify- Returns:
- Itself
-
withCustomParam1
Modifies this configuration's CustomParam1 parameter and returns itself for method-chaining and easier to use config API.Custom parameter 1. This is provided to allow end-applications to store persistent information in the device.
- Minimum Value: -32768
- Maximum Value: 32767
- Default Value: 0
- Units:
- Parameters:
newCustomParam1- 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
-