Class BaseMotorControllerConfiguration
java.lang.Object
com.ctre.phoenix.CustomParamConfiguration
com.ctre.phoenix.motorcontrol.can.BaseMotorControllerConfiguration
- Direct Known Subclasses:
BaseTalonConfiguration
,VictorSPXConfiguration
public abstract class BaseMotorControllerConfiguration extends CustomParamConfiguration
Configurables available to base motor controllers
-
Field Summary
Fields Modifier and Type Field Description boolean
auxPIDPolarity
PID polarity inversion Standard Polarity: Primary Output = PID0 + PID1, Auxiliary Output = PID0 - PID1, Inverted Polarity: Primary Output = PID0 - PID1, Auxiliary Output = PID0 + PID1,boolean
clearPositionOnLimitF
Clear the position on forward limitboolean
clearPositionOnLimitR
Clear the position on reverse limitboolean
clearPositionOnQuadIdx
Clear the position on indexdouble
closedloopRamp
Seconds to go from 0 to full in closed loopboolean
feedbackNotContinuous
Determine whether feedback sensor is continuous or notboolean
forwardSoftLimitEnable
Enable forward soft limitdouble
forwardSoftLimitThreshold
Threshold for soft limits in forward direction (in raw sensor units)boolean
limitSwitchDisableNeutralOnLOS
Disable neutral'ing the motor when remote limit switch is lost on CAN busdouble
motionAcceleration
Motion Magic acceleration in (raw sensor units per 100 ms) per second.double
motionCruiseVelocity
Motion Magic cruise velocity in raw sensor units per 100 ms.int
motionCurveStrength
Zero to use trapezoidal motion during motion magic.int
motionProfileTrajectoryPeriod
Motion profile base trajectory period in milliseconds.double
neutralDeadband
Neutral deadband [0.001, 0.25]double
nominalOutputForward
Nominal/Minimum output in forward direction [0,1]double
nominalOutputReverse
Nominal/Minimum output in reverse direction [-1,0]double
openloopRamp
Seconds to go from 0 to full in open loopdouble
peakOutputForward
Peak output in forward direction [0,1]double
peakOutputReverse
Peak output in reverse direction [-1,0]int
pulseWidthPeriod_EdgesPerRot
Number of edges per rotation for a tachometer sensorint
pulseWidthPeriod_FilterWindowSz
Desired window size for a tachometer sensorFilterConfiguration
remoteFilter0
Configuration for RemoteFilter 0FilterConfiguration
remoteFilter1
Configuration for RemoteFilter 1boolean
remoteSensorClosedLoopDisableNeutralOnLOS
Disable neutral'ing the motor when remote sensor is lost on CAN busboolean
reverseSoftLimitEnable
Enable reverse soft limitdouble
reverseSoftLimitThreshold
Threshold for soft limits in reverse direction (in raw sensor units)SlotConfiguration
slot0
Configuration for slot 0SlotConfiguration
slot1
Configuration for slot 1SlotConfiguration
slot2
Configuration for slot 2SlotConfiguration
slot3
Configuration for slot 3boolean
softLimitDisableNeutralOnLOS
Disable neutral'ing the motor when remote soft limit is lost on CAN busboolean
trajectoryInterpolationEnable
Enable motion profile trajectory point interpolation (defaults to true).SensorVelocityMeasPeriod
velocityMeasurementPeriod
Desired period for velocity measurementint
velocityMeasurementWindow
Desired window for velocity measurementdouble
voltageCompSaturation
This is the max voltage to apply to the hbridge when voltage compensation is enabled.int
voltageMeasurementFilter
Number of samples in rolling average for voltageFields inherited from class com.ctre.phoenix.CustomParamConfiguration
customParam0, customParam1, enableOptimizations
-
Constructor Summary
Constructors Constructor Description BaseMotorControllerConfiguration()
-
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
-
Method Details
-
toString
- Overrides:
toString
in classCustomParamConfiguration
- Returns:
- String representation of configs
-
toString
- Overrides:
toString
in classCustomParamConfiguration
- Parameters:
prependString
- String to prepend to configs- Returns:
- String representation of configs
-