Package com.ctre.phoenixpro.configs
Class MotorOutputConfigs
java.lang.Object
com.ctre.phoenixpro.configs.MotorOutputConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class MotorOutputConfigs extends Object implements ParentConfiguration
Configs that directly affect motor-output.
Includes Motor Invert and various limit features.
-
Field Summary
Fields Modifier and Type Field Description double
DutyCycleNeutralDeadband
Configures the output deadband percentage.InvertedValue
Inverted
Invert state of the deviceNeutralModeValue
NeutralMode
The state of the motor controller bridge when output is neutral or disabled.double
PeakForwardDutyCycle
Maximum (forward) output during duty cycle based control modes.double
PeakReverseDutyCycle
Minimum (reverse) output during duty cycle based control modes. -
Constructor Summary
Constructors Constructor Description MotorOutputConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String string)
String
serialize()
String
toString()
-
Field Details
-
Inverted
Invert state of the device -
NeutralMode
The state of the motor controller bridge when output is neutral or disabled. -
DutyCycleNeutralDeadband
Configures the output deadband percentage.- Minimum Value: 0.0
- Maximum Value: 0.25
- Default Value: 0
- Units: fractional
-
PeakForwardDutyCycle
Maximum (forward) output during duty cycle based control modes.- Minimum Value: -1.0
- Maximum Value: 1.0
- Default Value: 1
- Units: fractional
-
PeakReverseDutyCycle
Minimum (reverse) output during duty cycle based control modes.- Minimum Value: -1.0
- Maximum Value: 1.0
- Default Value: -1
- Units: fractional
-
-
Constructor Details
-
MotorOutputConfigs
public MotorOutputConfigs()
-
-
Method Details
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-