Class CustomParamsConfigs

java.lang.Object
com.ctre.phoenix6.configs.CustomParamsConfigs
All Implemented Interfaces:
ParentConfiguration, ISerializable, Cloneable

public class CustomParamsConfigs extends Object implements ParentConfiguration, Cloneable
Custom Params.

Custom paramaters that have no real impact on controller.

  • Field Details

    • CustomParam0

      public int 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

      public int 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

      public final CustomParamsConfigs withCustomParam0(int newCustomParam0)
      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

      public final CustomParamsConfigs withCustomParam1(int newCustomParam1)
      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

      public String toString()
      Overrides:
      toString in class Object
    • serialize

      public final String serialize()
      Get the serialized form of this configuration group.
      Specified by:
      serialize in interface ISerializable
      Returns:
      Serialized form of this config group
    • deserialize

      public final StatusCode deserialize(String to_deserialize)
      Take a string and deserialize it to this configuration group.
      Specified by:
      deserialize in interface ParentConfiguration
      Returns:
      Return code of the deserialize method
    • clone

      public CustomParamsConfigs clone()
      Overrides:
      clone in class Object