Package com.ctre.phoenixpro.configs
Class VoltageConfigs
java.lang.Object
com.ctre.phoenixpro.configs.VoltageConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class VoltageConfigs extends Object implements ParentConfiguration
Voltage-specific configs
Voltage-specific configs
-
Field Summary
Fields Modifier and Type Field Description double
PeakForwardVoltage
Maximum (forward) output during voltage based control modes.double
PeakReverseVoltage
Minimum (reverse) output during voltage based control modes.double
SupplyVoltageTimeConstant
The time constant (in seconds) of the low-pass filter for the supply voltage. -
Constructor Summary
Constructors Constructor Description VoltageConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String string)
String
serialize()
String
toString()
-
Field Details
-
SupplyVoltageTimeConstant
The time constant (in seconds) of the low-pass filter for the supply voltage.This impacts the filtering for the reported supply voltage, and any control strategies that use the supply voltage (such as voltage control on a motor controller).
- Minimum Value: 0.0
- Maximum Value: 0.1
- Default Value: 0
- Units: sec
-
PeakForwardVoltage
Maximum (forward) output during voltage based control modes.- Minimum Value: -16
- Maximum Value: 16
- Default Value: 16
- Units: V
-
PeakReverseVoltage
Minimum (reverse) output during voltage based control modes.- Minimum Value: -16
- Maximum Value: 16
- Default Value: -16
- Units: V
-
-
Constructor Details
-
VoltageConfigs
public VoltageConfigs()
-
-
Method Details
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-