Package com.ctre.phoenix6.configs
Class OpenLoopRampsConfigs
java.lang.Object
com.ctre.phoenix6.configs.OpenLoopRampsConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable
public class OpenLoopRampsConfigs extends Object implements ParentConfiguration
Configs that affect the open-loop control of this motor controller.
Open-loop ramp rates for the various control types.
-
Field Summary
Fields Modifier and Type Field Description doubleDutyCycleOpenLoopRampPeriodIf non-zero, this determines how much time to ramp from 0% output to 100% during open-loop modes.doubleTorqueOpenLoopRampPeriodIf non-zero, this determines how much time to ramp from 0A output to 300A during open-loop modes.doubleVoltageOpenLoopRampPeriodIf non-zero, this determines how much time to ramp from 0V output to 12V during open-loop modes. -
Constructor Summary
Constructors Constructor Description OpenLoopRampsConfigs() -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String to_deserialize)Stringserialize()StringtoString()OpenLoopRampsConfigswithDutyCycleOpenLoopRampPeriod(double newDutyCycleOpenLoopRampPeriod)Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.OpenLoopRampsConfigswithTorqueOpenLoopRampPeriod(double newTorqueOpenLoopRampPeriod)Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.OpenLoopRampsConfigswithVoltageOpenLoopRampPeriod(double newVoltageOpenLoopRampPeriod)Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
DutyCycleOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0% output to 100% during open-loop modes.- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
-
VoltageOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0V output to 12V during open-loop modes.- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
-
TorqueOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0A output to 300A during open-loop modes.- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: sec
-
-
Constructor Details
-
OpenLoopRampsConfigs
public OpenLoopRampsConfigs()
-
-
Method Details
-
withDutyCycleOpenLoopRampPeriod
Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.If non-zero, this determines how much time to ramp from 0% output to 100% during open-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
- Parameters:
newDutyCycleOpenLoopRampPeriod- Parameter to modify- Returns:
- Itself
-
withVoltageOpenLoopRampPeriod
Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.If non-zero, this determines how much time to ramp from 0V output to 12V during open-loop modes.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: sec
- Parameters:
newVoltageOpenLoopRampPeriod- Parameter to modify- Returns:
- Itself
-
withTorqueOpenLoopRampPeriod
Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.If non-zero, this determines how much time to ramp from 0A output to 300A during open-loop modes.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: sec
- Parameters:
newTorqueOpenLoopRampPeriod- Parameter to modify- Returns:
- Itself
-
toString
-
deserialize
- Specified by:
deserializein interfaceParentConfiguration
-
serialize
- Specified by:
serializein interfaceISerializable
-