Package com.revrobotics.spark.config
Class ClosedLoopConfigAccessor
java.lang.Object
com.revrobotics.spark.config.ClosedLoopConfigAccessor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal MAXMotionConfigAccessorAccessor for parameters relating to the MAXMotion.Accessor for parameters relating to the Software Limits.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubledoublegetD()doublegetD(ClosedLoopSlot slot) doubledoublegetDFilter(ClosedLoopSlot slot) doublegetFF()Deprecated, for removal: This API element is subject to removal in a future version.doublegetFF(ClosedLoopSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.UseFeedForwardConfigAccessor.getkV(ClosedLoopSlot slot)to get this gaindoublegetI()doublegetI(ClosedLoopSlot slot) doublegetIZone()doublegetIZone(ClosedLoopSlot slot) doubledoubledoubledoublegetMaxOutput(ClosedLoopSlot slot) doubledoublegetMinOutput(ClosedLoopSlot slot) doublegetP()doublegetP(ClosedLoopSlot slot) booleandoubledouble
- 
Field Details- 
maxMotionAccessor for parameters relating to the MAXMotion. To configure these values, useMAXMotionConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode)
- 
smartMotionAccessor for parameters relating to the Software Limits. To configure these values, useSmartMotionConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode)
- 
feedForward
 
- 
- 
Constructor Details- 
ClosedLoopConfigAccessorprotected ClosedLoopConfigAccessor(long sparkHandle) 
 
- 
- 
Method Details- 
getPpublic double getP()
- 
getIpublic double getI()
- 
getDpublic double getD()
- 
getFFDeprecated, for removal: This API element is subject to removal in a future version.UseFeedForwardConfigAccessor.getkV()to get this gain
- 
getDFilterpublic double getDFilter()
- 
getIZonepublic double getIZone()
- 
getMinOutputpublic double getMinOutput()
- 
getMaxOutputpublic double getMaxOutput()
- 
getP
- 
getI
- 
getD
- 
getFFDeprecated, for removal: This API element is subject to removal in a future version.UseFeedForwardConfigAccessor.getkV(ClosedLoopSlot slot)to get this gain
- 
getDFilter
- 
getIZone
- 
getMinOutput
- 
getMaxOutput
- 
getMaxIAccumulationpublic double getMaxIAccumulation()
- 
getMaxIAccumulation
- 
getAllowedClosedLoopError
- 
getPositionWrappingEnabledpublic boolean getPositionWrappingEnabled()
- 
getPositionWrappingMinInputpublic double getPositionWrappingMinInput()
- 
getPositionWrappingMaxInputpublic double getPositionWrappingMaxInput()
- 
getFeedbackSensor
 
- 
FeedForwardConfigAccessor.getkV()to get this gain