Package com.revrobotics.spark.config
Class ClosedLoopConfigAccessor
java.lang.Object
com.revrobotics.spark.config.ClosedLoopConfigAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccessor for parameters relating to FeedForward.final MAXMotionConfigAccessorAccessor for parameters relating to the MAXMotion. -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
maxMotion
Accessor for parameters relating to the MAXMotion. To configure these values, useMAXMotionConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode) -
feedForward
Accessor for parameters relating to FeedForward. To configure these values, useFeedForwardConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode)
-
-
Constructor Details
-
ClosedLoopConfigAccessor
protected ClosedLoopConfigAccessor(long sparkHandle)
-
-
Method Details
-
getP
public double getP() -
getI
public double getI() -
getD
public double getD() -
getFF
Deprecated, for removal: This API element is subject to removal in a future version.UseFeedForwardConfigAccessor.getkV()to get this gain -
getDFilter
public double getDFilter() -
getIZone
public double getIZone() -
getMinOutput
public double getMinOutput() -
getMaxOutput
public double getMaxOutput() -
getP
-
getI
-
getD
-
getFF
Deprecated, 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
-
getMaxIAccumulation
public double getMaxIAccumulation() -
getMaxIAccumulation
-
getAllowedClosedLoopError
-
getPositionWrappingEnabled
public boolean getPositionWrappingEnabled() -
getPositionWrappingMinInput
public double getPositionWrappingMinInput() -
getPositionWrappingMaxInput
public double getPositionWrappingMaxInput() -
getFeedbackSensor
-
FeedForwardConfigAccessor.getkV()to get this gain