Class Hood.HoodConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.subsystems.hood.Hood.HoodConfig
- Enclosing class:
Hood
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DoubleParam49.3 deg.static final DoubleParam8.64 deg, 0.36 deg under the 9 deg bottom stop on purpose.Fields inherited from class Mechanism.Config
talonConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the currently configured sensor-to-mechanism gear ratio.doubledoublegetHoodX()doublegetHoodY()doubleBest guess at boot, until homing finds the stop.doubledoubledoubledoubleMaximum mechanism position in rotations (used for range calculations).doubleMinimum mechanism position in rotations (used for range calculations).doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubleMethods inherited from class Mechanism.Config
applyTalonConfig, configClockwise_Positive, configClosedLoopRamps, configContinuousWrap, configCounterClockwise_Positive, configFeedbackSensorSource, configFeedbackSensorSource, configFeedForwardGains, configFeedForwardGains, configForwardSoftLimit, configForwardTorqueCurrentLimit, configForwardVoltageLimit, configGearRatio, configGravityType, configGravityType, configLowerSupplyCurrentLimit, configLowerSupplyCurrentTime, configMinMaxRotations, configMotionMagic, configMotionMagicPosition, configMotionMagicVelocity, configNeutralBrakeMode, configNeutralDeadband, configOpenLoopRamps, configPeakOutput, configPIDGains, configPIDGains, configPositionTrackingStop, configReverseSoftLimit, configReverseTorqueCurrentLimit, configReverseVoltageLimit, configSoftLimits, configStatorCurrentLimit, configSupplyCurrentLimit, configVelocityTrackingStop, configVoltageCompensation, getDynamicMMPositionFOC, getDynamicMotionMagicVoltage, getFollowerConfigs, getForwardSoftLimitParam, getId, getMmPositionFOC, getMmPositionVoltage, getMmPositionVoltageSlot, getMmVelocityFOC, getMmVelocityVoltage, getName, getNumMotors, getPercentOutput, getPositionControl, getPositionTorqueFOC, getReverseSoftLimitParam, getTalonConfig, getTorqueCurrentFOC, getTrackingDebounceSeconds, getTrackingTolerance, getVelocityControl, getVelocityTorqueCurrentFOC, getVoltageCompSaturation, getVoltageControl, isAttached, isFastOutputLogging, isTrackingStopEnabled, isTrackingVelocity, setAttached, setFastOutputLogging, setFollowerConfigs, setTalonConfig, setTrackingStopEnabled
-
Field Details
-
FORWARD_SOFT_LIMIT
49.3 deg. No higher than that: where the top stop is is not recorded in this code, so raising the limit is a code change. No lower than 20 deg, well above the bottom stop, so the two limits can never cross. -
REVERSE_SOFT_LIMIT
8.64 deg, 0.36 deg under the 9 deg bottom stop on purpose. At most the stop itself, where the hood boots and homes (initPosition, HoodHoming stopDeg): above it the hood would sit outside its own limits. At least 1 deg under the stop.
-
-
Constructor Details
-
HoodConfig
public HoodConfig()
-
-
Method Details
-
getInitPosition
public double getInitPosition()Best guess at boot, until homing finds the stop. -
getMaxRotations
public double getMaxRotations()Description copied from class:Mechanism.ConfigMaximum mechanism position in rotations (used for range calculations).- Overrides:
getMaxRotationsin classMechanism.Config
-
getMinRotations
public double getMinRotations()Description copied from class:Mechanism.ConfigMinimum mechanism position in rotations (used for range calculations).- Overrides:
getMinRotationsin classMechanism.Config
-
getSupplyCurrentLimit
public double getSupplyCurrentLimit() -
getStatorCurrentLimit
public double getStatorCurrentLimit() -
getLowerSupplyCurrentLimit
public double getLowerSupplyCurrentLimit() -
getLowerSupplyCurrentTime
public double getLowerSupplyCurrentTime() -
getPositionKp
public double getPositionKp() -
getPositionKi
public double getPositionKi() -
getPositionKd
public double getPositionKd() -
getPositionKv
public double getPositionKv() -
getPositionKs
public double getPositionKs() -
getPositionKa
public double getPositionKa() -
getPositionKg
public double getPositionKg() -
getGearRatio
public double getGearRatio()Description copied from class:Mechanism.ConfigReturns the currently configured sensor-to-mechanism gear ratio.- Overrides:
getGearRatioin classMechanism.Config- Returns:
- the gear ratio
-
getMmCruiseVelocity
public double getMmCruiseVelocity() -
getMmAcceleration
public double getMmAcceleration() -
getMmJerk
public double getMmJerk() -
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM() -
getHoodX
public double getHoodX() -
getHoodY
public double getHoodY() -
getSimRatio
public double getSimRatio() -
getLength
public double getLength()
-