Class IntakeExtension.IntakeExtensionConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.subsystems.intakeExtension.IntakeExtension.IntakeExtensionConfig
- Enclosing class:
IntakeExtension
-
Field Summary
FieldsFields inherited from class Mechanism.Config
talonConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyMotorConfig(TalonFX motor) doublegetAngle()doubledoubledoubledoubledoubledoubleWhile holding, pushed back in by this much (about 2 in) drives out again.doubledoubledoubledoubledoubleReturns the currently configured sensor-to-mechanism gear ratio.doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubleMaximum mechanism position in rotations (used for range calculations).doubleMinimum mechanism position in rotations (used for range calculations).doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubleBoth sides must read within this of each other, or one is bound up short.doubleOut-point relearn only when the extend moved less than this: a power-on with the intake out cannot move, while a jam part way out moves first (RESYNC handles those).doubledoubledoubledoubledoubledoubledoubledoubledoubledoublebooleanMethods 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
-
REVERSE_SOFT_LIMIT
-
-
Constructor Details
-
IntakeExtensionConfig
public IntakeExtensionConfig()
-
-
Method Details
-
applyMotorConfig
-
getInitPosition
public double getInitPosition() -
getTriggerTolerance
public double getTriggerTolerance() -
getZeroSpeed
public double getZeroSpeed() -
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM() -
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() -
getSlowMmCruiseVelocity
public double getSlowMmCruiseVelocity() -
getSlowMmAcceleration
public double getSlowMmAcceleration() -
getSlowMmJerk
public double getSlowMmJerk() -
getSensorToMechanismRatio
public double getSensorToMechanismRatio() -
getRotorToSensorRatio
public double getRotorToSensorRatio() -
getCANcoderRotorToSensorRatio
public double getCANcoderRotorToSensorRatio() -
getCANcoderSensorToMechanismRatio
public double getCANcoderSensorToMechanismRatio() -
getCANcoderOffset
public double getCANcoderOffset() -
isCANcoderAttached
public boolean isCANcoderAttached() -
getHomingVoltage
public double getHomingVoltage() -
getHomingStallRPM
public double getHomingStallRPM() -
getHomingMinTimeSecs
public double getHomingMinTimeSecs() -
getHomingStallDebounceSecs
public double getHomingStallDebounceSecs() -
getHomingTimeoutSecs
public double getHomingTimeoutSecs() -
getExtendSteadySecs
public double getExtendSteadySecs() -
getExtendSteadyMaxRPM
public double getExtendSteadyMaxRPM() -
getExtendAtTargetToleranceRotations
public double getExtendAtTargetToleranceRotations() -
getExtendReextendRotations
public double getExtendReextendRotations()While holding, pushed back in by this much (about 2 in) drives out again. -
getRelearnMaxTravelRotations
public double getRelearnMaxTravelRotations()Out-point relearn only when the extend moved less than this: a power-on with the intake out cannot move, while a jam part way out moves first (RESYNC handles those). -
getRelearnMaxSkewRotations
public double getRelearnMaxSkewRotations()Both sides must read within this of each other, or one is bound up short. -
getIntakeX
public double getIntakeX() -
getIntakeY
public double getIntakeY() -
getExtensionMass
public double getExtensionMass() -
getDrumRadiusMeters
public double getDrumRadiusMeters() -
getExtensionGearing
public double getExtensionGearing() -
getAngle
public double getAngle() -
getStaticLength
public double getStaticLength() -
getMovingLength
public double getMovingLength() -
getLineWidth
public double getLineWidth() -
getMaxExtensionHeight
public double getMaxExtensionHeight()
-