Package com.ctre.phoenix6.configs
Class CustomParamsConfigs
java.lang.Object
com.ctre.phoenix6.configs.CustomParamsConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class CustomParamsConfigs extends Object implements ParentConfiguration
Custom Params.
Custom paramaters that have no real impact on controller.
-
Field Summary
Fields Modifier and Type Field Description int
CustomParam0
Custom parameter 0.int
CustomParam1
Custom parameter 1. -
Constructor Summary
Constructors Constructor Description CustomParamsConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String to_deserialize)
String
serialize()
String
toString()
CustomParamsConfigs
withCustomParam0(int newCustomParam0)
Modifies this configuration's CustomParam0 parameter and returns itself for method-chaining and easier to use config API.CustomParamsConfigs
withCustomParam1(int newCustomParam1)
Modifies this configuration's CustomParam1 parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
CustomParam0
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:
-
CustomParam1
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:
-
-
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
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-