Class CANdleFeaturesConfigs
java.lang.Object
com.ctre.phoenix6.configs.CANdleFeaturesConfigs
- All Implemented Interfaces:
ParentConfiguration, Cloneable
Configs related to general CANdle features.
This includes configs such as disabling the 5V rail and the behavior of VBat output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether the 5V rail is enabled.Whether the Status LED is enabled when the CANdle is actively being controlled.The behavior of the VBat output. -
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 CANdleFeaturesConfigswithEnable5VRail(Enable5VRailValue newEnable5VRail) Modifies this configuration's Enable5VRail parameter and returns itself for method-chaining and easier to use config API.final CANdleFeaturesConfigswithStatusLedWhenActive(StatusLedWhenActiveValue newStatusLedWhenActive) Modifies this configuration's StatusLedWhenActive parameter and returns itself for method-chaining and easier to use config API.final CANdleFeaturesConfigswithVBatOutputMode(VBatOutputModeValue newVBatOutputMode) Modifies this configuration's VBatOutputMode parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
Enable5VRail
Whether the 5V rail is enabled. Disabling the 5V rail will also turn off the onboard LEDs.- Default Value:
Enable5VRailValue.Enabled
- Default Value:
-
VBatOutputMode
The behavior of the VBat output. CANdle supports modulating VBat output for single-color LED strips.- Default Value:
VBatOutputModeValue.On
- Default Value:
-
StatusLedWhenActive
Whether the Status LED is enabled when the CANdle is actively being controlled.- Default Value:
StatusLedWhenActiveValue.Enabled
- Default Value:
-
-
Constructor Details
-
CANdleFeaturesConfigs
public CANdleFeaturesConfigs()
-
-
Method Details
-
withEnable5VRail
Modifies this configuration's Enable5VRail parameter and returns itself for method-chaining and easier to use config API.Whether the 5V rail is enabled. Disabling the 5V rail will also turn off the onboard LEDs.
- Default Value:
Enable5VRailValue.Enabled
- Parameters:
newEnable5VRail- Parameter to modify- Returns:
- Itself
- Default Value:
-
withVBatOutputMode
Modifies this configuration's VBatOutputMode parameter and returns itself for method-chaining and easier to use config API.The behavior of the VBat output. CANdle supports modulating VBat output for single-color LED strips.
- Default Value:
VBatOutputModeValue.On
- Parameters:
newVBatOutputMode- Parameter to modify- Returns:
- Itself
- Default Value:
-
withStatusLedWhenActive
public final CANdleFeaturesConfigs withStatusLedWhenActive(StatusLedWhenActiveValue newStatusLedWhenActive) Modifies this configuration's StatusLedWhenActive parameter and returns itself for method-chaining and easier to use config API.Whether the Status LED is enabled when the CANdle is actively being controlled.
- Default Value:
StatusLedWhenActiveValue.Enabled
- Parameters:
newStatusLedWhenActive- Parameter to modify- Returns:
- Itself
- Default Value:
-
toString
-
serialize
Get the serialized form of this configuration group.- Specified by:
serializein interfaceParentConfiguration- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration group.- Specified by:
deserializein interfaceParentConfiguration- Parameters:
to_deserialize- The serialized configuration- Returns:
- Return code of the deserialize method
-
clone
-