Class OpenLoopRampsConfigs
- All Implemented Interfaces:
ParentConfiguration, Cloneable
Open-loop ramp rates for the various control types.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleIf non-zero, this determines how much time to ramp from 0% output to 100% during the open-loop DutyCycleOut control mode.doubleIf non-zero, this determines how much time to ramp from 0A output to 300A during the open-loop TorqueCurrent control mode.doubleIf 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 TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration group.final TimeHelper method to get this configuration's DutyCycleOpenLoopRampPeriod parameter converted to a unit type.final TimeHelper method to get this configuration's TorqueOpenLoopRampPeriod parameter converted to a unit type.final TimeHelper method to get this configuration's VoltageOpenLoopRampPeriod parameter converted to a unit type.final StringGet the serialized form of this configuration group.toString()final OpenLoopRampsConfigswithDutyCycleOpenLoopRampPeriod(double newDutyCycleOpenLoopRampPeriod) Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.final OpenLoopRampsConfigswithDutyCycleOpenLoopRampPeriod(Time newDutyCycleOpenLoopRampPeriod) Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.final OpenLoopRampsConfigswithTorqueOpenLoopRampPeriod(double newTorqueOpenLoopRampPeriod) Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.final OpenLoopRampsConfigswithTorqueOpenLoopRampPeriod(Time newTorqueOpenLoopRampPeriod) Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.final OpenLoopRampsConfigswithVoltageOpenLoopRampPeriod(double newVoltageOpenLoopRampPeriod) Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.final OpenLoopRampsConfigswithVoltageOpenLoopRampPeriod(Time newVoltageOpenLoopRampPeriod) Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
DutyCycleOpenLoopRampPeriod
public double DutyCycleOpenLoopRampPeriodIf 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
public double VoltageOpenLoopRampPeriodIf 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
public double TorqueOpenLoopRampPeriodIf 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
public final OpenLoopRampsConfigs withDutyCycleOpenLoopRampPeriod(double newDutyCycleOpenLoopRampPeriod) 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
public final OpenLoopRampsConfigs withDutyCycleOpenLoopRampPeriod(Time newDutyCycleOpenLoopRampPeriod) 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,DutyCycleOpenLoopRampPeriodcan 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
public final OpenLoopRampsConfigs withVoltageOpenLoopRampPeriod(double newVoltageOpenLoopRampPeriod) 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,VoltageOpenLoopRampPeriodcan 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,TorqueOpenLoopRampPeriodcan 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
-
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
-