Class OpenLoopRampsConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
Open-loop ramp rates for the various control types.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
If non-zero, this determines how much time to ramp from 0% output to 100% during the open-loop DutyCycleOut control mode.double
If non-zero, this determines how much time to ramp from 0A output to 300A during the open-loop TorqueCurrent control mode.double
If non-zero, this determines how much time to ramp from 0V output to 12V during the open-loop VoltageOut control mode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String to_deserialize) Helper method to get this configuration's DutyCycleOpenLoopRampPeriod parameter converted to a unit type.Helper method to get this configuration's TorqueOpenLoopRampPeriod parameter converted to a unit type.Helper method to get this configuration's VoltageOpenLoopRampPeriod parameter converted to a unit type.toString()
withDutyCycleOpenLoopRampPeriod
(double newDutyCycleOpenLoopRampPeriod) Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.withDutyCycleOpenLoopRampPeriod
(Time newDutyCycleOpenLoopRampPeriod) Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.withTorqueOpenLoopRampPeriod
(double newTorqueOpenLoopRampPeriod) Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.withTorqueOpenLoopRampPeriod
(Time newTorqueOpenLoopRampPeriod) Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.withVoltageOpenLoopRampPeriod
(double newVoltageOpenLoopRampPeriod) Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.withVoltageOpenLoopRampPeriod
(Time 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 the open-loop DutyCycleOut control mode.This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
-
VoltageOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0V output to 12V during the open-loop VoltageOut control mode.This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
-
TorqueOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0A output to 300A during the open-loop TorqueCurrent control mode.Since TorqueCurrent is directly proportional to acceleration, this ramp limits jerk instead of acceleration.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: seconds
-
-
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 the open-loop DutyCycleOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Parameters:
newDutyCycleOpenLoopRampPeriod
- Parameter to modify- Returns:
- Itself
-
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 the open-loop DutyCycleOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Parameters:
newDutyCycleOpenLoopRampPeriod
- Parameter to modify- Returns:
- Itself
-
getDutyCycleOpenLoopRampPeriodMeasure
Helper method to get this configuration's DutyCycleOpenLoopRampPeriod parameter converted to a unit type. If not using the Java units library,DutyCycleOpenLoopRampPeriod
can be accessed directly instead.If non-zero, this determines how much time to ramp from 0% output to 100% during the open-loop DutyCycleOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Returns:
- DutyCycleOpenLoopRampPeriod
-
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 the open-loop VoltageOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Parameters:
newVoltageOpenLoopRampPeriod
- 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 the open-loop VoltageOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Parameters:
newVoltageOpenLoopRampPeriod
- Parameter to modify- Returns:
- Itself
-
getVoltageOpenLoopRampPeriodMeasure
Helper method to get this configuration's VoltageOpenLoopRampPeriod parameter converted to a unit type. If not using the Java units library,VoltageOpenLoopRampPeriod
can be accessed directly instead.If non-zero, this determines how much time to ramp from 0V output to 12V during the open-loop VoltageOut control mode.
This provides an easy way to limit the acceleration of the motor. However, the acceleration and current draw of the motor can be better restricted using current limits instead of a ramp rate.
- Minimum Value: 0
- Maximum Value: 1
- Default Value: 0
- Units: seconds
- Returns:
- VoltageOpenLoopRampPeriod
-
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 the open-loop TorqueCurrent control mode.
Since TorqueCurrent is directly proportional to acceleration, this ramp limits jerk instead of acceleration.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: seconds
- Parameters:
newTorqueOpenLoopRampPeriod
- 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 the open-loop TorqueCurrent control mode.
Since TorqueCurrent is directly proportional to acceleration, this ramp limits jerk instead of acceleration.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: seconds
- Parameters:
newTorqueOpenLoopRampPeriod
- Parameter to modify- Returns:
- Itself
-
getTorqueOpenLoopRampPeriodMeasure
Helper method to get this configuration's TorqueOpenLoopRampPeriod parameter converted to a unit type. If not using the Java units library,TorqueOpenLoopRampPeriod
can be accessed directly instead.If non-zero, this determines how much time to ramp from 0A output to 300A during the open-loop TorqueCurrent control mode.
Since TorqueCurrent is directly proportional to acceleration, this ramp limits jerk instead of acceleration.
- Minimum Value: 0
- Maximum Value: 10
- Default Value: 0
- Units: seconds
- Returns:
- TorqueOpenLoopRampPeriod
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-