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 TypeFieldDescriptionboolean
PID polarity inversion Standard Polarity: Primary Output = PID0 + PID1, Auxiliary Output = PID0 - PID1, Inverted Polarity: Primary Output = PID0 - PID1, Auxiliary Output = PID0 + PID1,boolean
Clear the position on forward limitboolean
Clear the position on reverse limitboolean
Clear the position on indexdouble
Seconds to go from 0 to full in closed loopboolean
Determine whether feedback sensor is continuous or notboolean
Enable forward soft limitdouble
Threshold for soft limits in forward direction (in raw sensor units)boolean
Disable neutral'ing the motor when remote limit switch is lost on CAN busdouble
Motion Magic acceleration in (raw sensor units per 100 ms) per second.double
Motion Magic cruise velocity in raw sensor units per 100 ms.int
Zero to use trapezoidal motion during motion magic.int
Motion profile base trajectory period in milliseconds.double
Neutral deadband [0.001, 0.25]double
Nominal/Minimum output in forward direction [0,1]double
Nominal/Minimum output in reverse direction [-1,0]double
Seconds to go from 0 to full in open loopdouble
Peak output in forward direction [0,1]double
Peak output in reverse direction [-1,0]int
Number of edges per rotation for a tachometer sensorint
Desired window size for a tachometer sensorConfiguration for RemoteFilter 0Configuration for RemoteFilter 1boolean
Disable neutral'ing the motor when remote sensor is lost on CAN busboolean
Enable reverse soft limitdouble
Threshold for soft limits in reverse direction (in raw sensor units)Configuration for slot 0Configuration for slot 1Configuration for slot 2Configuration for slot 3boolean
Disable neutral'ing the motor when remote soft limit is lost on CAN busboolean
Enable motion profile trajectory point interpolation (defaults to true).Desired period for velocity measurementint
Desired window for velocity measurementdouble
This is the max voltage to apply to the hbridge when voltage compensation is enabled.int
Number 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:
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
-