Package com.revrobotics.spark.config
Class ClosedLoopConfigAccessor
java.lang.Object
com.revrobotics.spark.config.ClosedLoopConfigAccessor
-
Field Summary
Modifier and TypeFieldDescriptionfinal MAXMotionConfigAccessor
Accessor for parameters relating to the MAXMotion.Accessor for parameters relating to the Software Limits. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getD()
double
getD
(ClosedLoopSlot slot) double
double
getDFilter
(ClosedLoopSlot slot) double
getFF()
double
getFF
(ClosedLoopSlot slot) double
getI()
double
getI
(ClosedLoopSlot slot) double
getIZone()
double
getIZone
(ClosedLoopSlot slot) double
double
double
double
getMaxOutput
(ClosedLoopSlot slot) double
double
getMinOutput
(ClosedLoopSlot slot) double
getP()
double
getP
(ClosedLoopSlot slot) boolean
double
double
-
Field Details
-
maxMotion
Accessor for parameters relating to the MAXMotion. To configure these values, useMAXMotionConfig
and callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode)
-
smartMotion
Accessor for parameters relating to the Software Limits. To configure these values, useSmartMotionConfig
and 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
public double getFF() -
getDFilter
public double getDFilter() -
getIZone
public double getIZone() -
getMinOutput
public double getMinOutput() -
getMaxOutput
public double getMaxOutput() -
getP
-
getI
-
getD
-
getFF
-
getDFilter
-
getIZone
-
getMinOutput
-
getMaxOutput
-
getMaxIAccumulation
public double getMaxIAccumulation() -
getMaxIAccumulation
-
getPositionWrappingEnabled
public boolean getPositionWrappingEnabled() -
getPositionWrappingMinInput
public double getPositionWrappingMinInput() -
getPositionWrappingMaxInput
public double getPositionWrappingMaxInput() -
getFeedbackSensor
-