Package com.ctre.phoenix6.configs
Class CANdleFeaturesConfigs
java.lang.Object
com.ctre.phoenix6.configs.CANdleFeaturesConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable
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 TypeMethodDescriptiondeserialize(String to_deserialize) toString()withEnable5VRail(Enable5VRailValue newEnable5VRail) Modifies this configuration's Enable5VRail parameter and returns itself for method-chaining and easier to use config API.withStatusLedWhenActive(StatusLedWhenActiveValue newStatusLedWhenActive) Modifies this configuration's StatusLedWhenActive parameter and returns itself for method-chaining and easier to use config API.withVBatOutputMode(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. -
VBatOutputMode
The behavior of the VBat output. CANdle supports modulating VBat output for single-color LED strips. -
StatusLedWhenActive
Whether the Status LED is enabled when the CANdle is actively being controlled.
-
-
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.
- Parameters:
newEnable5VRail- Parameter to modify- Returns:
- Itself
-
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.
- Parameters:
newVBatOutputMode- Parameter to modify- Returns:
- Itself
-
withStatusLedWhenActive
public 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.
- Parameters:
newStatusLedWhenActive- Parameter to modify- Returns:
- Itself
-
toString
-
deserialize
- Specified by:
deserializein interfaceParentConfiguration
-
serialize
- Specified by:
serializein interfaceISerializable
-