Package com.revrobotics.spark.config
Class SparkBaseConfigAccessor
java.lang.Object
com.revrobotics.spark.config.SparkBaseConfigAccessor
- Direct Known Subclasses:
SparkFlexConfigAccessor,SparkMaxConfigAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccessor for parameters relating to the absolute encoder.Accessor for parameters relating to the analog sensor.final ClosedLoopConfigAccessorAccessor for parameters relating to the closed loop controller.final EncoderConfigAccessorAccessor for parameters relating to the primary encoder.Accessor for parameters relating to the hardware limit switches.final SignalsConfigAccessorAccessor for parameters relating to the Status Signals.final SoftLimitConfigAccessorAccessor for parameters relating to the Software Limits. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublebooleanintbooleandoubledoubleintintintintdoubleboolean
-
Field Details
-
absoluteEncoder
Accessor for parameters relating to the absolute encoder. To configure these values, useAbsoluteEncoderConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
analogSensor
Accessor for parameters relating to the analog sensor. To configure these values, useAnalogSensorConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
encoder
Accessor for parameters relating to the primary encoder. To configure these values, useEncoderConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
limitSwitch
Accessor for parameters relating to the hardware limit switches. To configure these values, useLimitSwitchConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
closedLoop
Accessor for parameters relating to the closed loop controller. To configure these values, useClosedLoopConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
softLimit
Accessor for parameters relating to the Software Limits. To configure these values, useSoftLimitConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
signals
Accessor for parameters relating to the Status Signals. To configure these values, useSignalsConfigand callSparkBase.configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode).NOTE: This uses calls that are blocking to retrieve parameters and should be used infrequently.
-
-
Constructor Details
-
SparkBaseConfigAccessor
protected SparkBaseConfigAccessor(long sparkHandle)
-
-
Method Details
-
getIdleMode
-
getInverted
public boolean getInverted() -
getSmartCurrentLimit
public int getSmartCurrentLimit() -
getSmartCurrentFreeLimit
public int getSmartCurrentFreeLimit() -
getSmartCurrentRPMLimit
public int getSmartCurrentRPMLimit() -
getSecondaryCurrentLimit
public double getSecondaryCurrentLimit() -
getSecondaryCurrentLimitChopCycles
public int getSecondaryCurrentLimitChopCycles() -
getOpenLoopRampRate
public double getOpenLoopRampRate() -
getClosedLoopRampRate
public double getClosedLoopRampRate() -
getVoltageCompensation
public double getVoltageCompensation() -
getVoltageCompensationEnabled
public boolean getVoltageCompensationEnabled() -
getFollowerModeLeaderId
public int getFollowerModeLeaderId() -
getFollowerModeInverted
public boolean getFollowerModeInverted()
-