Class BaseMotorControllerConfiguration
java.lang.Object
com.ctre.phoenix.CustomParamConfiguration
com.ctre.phoenix.motorcontrol.can.BaseMotorControllerConfiguration
- Direct Known Subclasses:
BaseTalonConfiguration,VictorSPXConfiguration
Configurables available to base motor controllers
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPID polarity inversion Standard Polarity: Primary Output = PID0 + PID1, Auxiliary Output = PID0 - PID1, Inverted Polarity: Primary Output = PID0 - PID1, Auxiliary Output = PID0 + PID1,booleanClear the position on forward limitbooleanClear the position on reverse limitbooleanClear the position on indexdoubleSeconds to go from 0 to full in closed loopbooleanDetermine whether feedback sensor is continuous or notbooleanEnable forward soft limitdoubleThreshold for soft limits in forward direction (in raw sensor units)booleanDisable neutral'ing the motor when remote limit switch is lost on CAN busdoubleMotion Magic acceleration in (raw sensor units per 100 ms) per second.doubleMotion Magic cruise velocity in raw sensor units per 100 ms.intZero to use trapezoidal motion during motion magic.intMotion profile base trajectory period in milliseconds.doubleNeutral deadband [0.001, 0.25]doubleNominal/Minimum output in forward direction [0,1]doubleNominal/Minimum output in reverse direction [-1,0]doubleSeconds to go from 0 to full in open loopdoublePeak output in forward direction [0,1]doublePeak output in reverse direction [-1,0]intNumber of edges per rotation for a tachometer sensorintDesired window size for a tachometer sensorConfiguration for RemoteFilter 0Configuration for RemoteFilter 1booleanDisable neutral'ing the motor when remote sensor is lost on CAN busbooleanEnable reverse soft limitdoubleThreshold for soft limits in reverse direction (in raw sensor units)Configuration for slot 0Configuration for slot 1Configuration for slot 2Configuration for slot 3booleanDisable neutral'ing the motor when remote soft limit is lost on CAN busbooleanEnable motion profile trajectory point interpolation (defaults to true).Desired period for velocity measurementintDesired window for velocity measurementdoubleThis is the max voltage to apply to the hbridge when voltage compensation is enabled.intNumber of samples in rolling average for voltageFields inherited from class com.ctre.phoenix.CustomParamConfiguration
customParam0, customParam1, enableOptimizations -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
openloopRamp
Seconds to go from 0 to full in open loop -
closedloopRamp
Seconds to go from 0 to full in closed loop -
peakOutputForward
Peak output in forward direction [0,1] -
peakOutputReverse
Peak output in reverse direction [-1,0] -
nominalOutputForward
Nominal/Minimum output in forward direction [0,1] -
nominalOutputReverse
Nominal/Minimum output in reverse direction [-1,0] -
neutralDeadband
Neutral deadband [0.001, 0.25] -
voltageCompSaturation
This is the max voltage to apply to the hbridge when voltage compensation is enabled. For example, if 10 (volts) is specified and a TalonSRX is commanded to 0.5 (PercentOutput, closed-loop, etc) then the TalonSRX will attempt to apply a duty-cycle to produce 5V. -
voltageMeasurementFilter
Number of samples in rolling average for voltage -
velocityMeasurementPeriod
Desired period for velocity measurement -
velocityMeasurementWindow
Desired window for velocity measurement -
forwardSoftLimitThreshold
Threshold for soft limits in forward direction (in raw sensor units) -
reverseSoftLimitThreshold
Threshold for soft limits in reverse direction (in raw sensor units) -
forwardSoftLimitEnable
Enable forward soft limit -
reverseSoftLimitEnable
Enable reverse soft limit -
slot0
Configuration for slot 0 -
slot1
Configuration for slot 1 -
slot2
Configuration for slot 2 -
slot3
Configuration for slot 3 -
auxPIDPolarity
PID polarity inversion Standard Polarity: Primary Output = PID0 + PID1, Auxiliary Output = PID0 - PID1, Inverted Polarity: Primary Output = PID0 - PID1, Auxiliary Output = PID0 + PID1, -
remoteFilter0
Configuration for RemoteFilter 0 -
remoteFilter1
Configuration for RemoteFilter 1 -
motionCruiseVelocity
Motion Magic cruise velocity in raw sensor units per 100 ms. -
motionAcceleration
Motion Magic acceleration in (raw sensor units per 100 ms) per second. -
motionCurveStrength
Zero to use trapezoidal motion during motion magic. [1,8] for S-Curve, higher value for greater smoothing. -
motionProfileTrajectoryPeriod
Motion profile base trajectory period in milliseconds. The period specified in a trajectory point will be added on to this value -
feedbackNotContinuous
Determine whether feedback sensor is continuous or not -
remoteSensorClosedLoopDisableNeutralOnLOS
Disable neutral'ing the motor when remote sensor is lost on CAN bus -
clearPositionOnLimitF
Clear the position on forward limit -
clearPositionOnLimitR
Clear the position on reverse limit -
clearPositionOnQuadIdx
Clear the position on index -
limitSwitchDisableNeutralOnLOS
Disable neutral'ing the motor when remote limit switch is lost on CAN bus -
softLimitDisableNeutralOnLOS
Disable neutral'ing the motor when remote soft limit is lost on CAN bus -
pulseWidthPeriod_EdgesPerRot
Number of edges per rotation for a tachometer sensor -
pulseWidthPeriod_FilterWindowSz
Desired window size for a tachometer sensor -
trajectoryInterpolationEnable
Enable motion profile trajectory point interpolation (defaults to true).
-
-
Constructor Details
-
BaseMotorControllerConfiguration
public BaseMotorControllerConfiguration()
-
-
Method Details
-
toString
- Overrides:
toStringin classCustomParamConfiguration- Returns:
- String representation of configs
-
toString
- Overrides:
toStringin classCustomParamConfiguration- Parameters:
prependString- String to prepend to configs- Returns:
- String representation of configs
-