Package frc.robot.intakeExtension
Class IntakeExtension.IntakeExtensionConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.intakeExtension.IntakeExtension.IntakeExtensionConfig
- Enclosing class:
- IntakeExtension
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAngle()doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoublebooleanmodifyMotorConfig(com.ctre.phoenix6.hardware.TalonFX motor) voidsetCANcoderAttached(boolean CANcoderAttached) voidsetCANcoderOffset(double CANcoderOffset) voidsetCANcoderRotorToSensorRatio(double CANcoderRotorToSensorRatio) voidsetCANcoderSensorToMechanismRatio(double CANcoderSensorToMechanismRatio) voidsetMaxRotations(double maxRotations) voidsetMinRotations(double minRotations) voidsetRotorToSensorRatio(double rotorToSensorRatio) voidsetSensorToMechanismRatio(double sensorToMechanismRatio) Methods inherited from class frc.spectrumLib.mechanism.Mechanism.Config
applyTalonConfig, configClockwise_Positive, configContinuousWrap, configCounterClockwise_Positive, configFeedbackSensorSource, configFeedbackSensorSource, configFeedForwardGains, configFeedForwardGains, configForwardSoftLimit, configForwardTorqueCurrentLimit, configGearRatio, configGravityType, configGravityType, configMinMaxRotations, configMotionMagic, configMotionMagicPosition, configMotionMagicVelocity, configNeutralBrakeMode, configNeutralDeadband, configPeakOutput, configPIDGains, configPIDGains, configReverseSoftLimit, configReverseTorqueCurrentLimit, configStatorCurrentLimit, configSupplyCurrentLimit, configVoltageCompensation, getDynamicMMPositionFOC, getFollowerConfigs, getGearRatio, getId, getMmPositionFOC, getMmPositionVoltage, getMmPositionVoltageSlot, getMmVelocityFOC, getMmVelocityVoltage, getName, getNumMotors, getPercentOutput, getTalonConfig, getTorqueCurrentFOC, getVelocityControl, getVelocityTorqueCurrentFOC, getVoltageCompSaturation, getVoltageControl, isAttached, setAttached, setFollowerConfigs, setTalonConfig
-
Constructor Details
-
IntakeExtensionConfig
public IntakeExtensionConfig()
-
-
Method Details
-
modifyMotorConfig
public IntakeExtension.IntakeExtensionConfig modifyMotorConfig(com.ctre.phoenix6.hardware.TalonFX motor) -
getInitPosition
public double getInitPosition() -
getTriggerTolerance
public double getTriggerTolerance() -
getZeroSpeed
public double getZeroSpeed() -
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM() -
getMaxRotations
public double getMaxRotations()- Overrides:
getMaxRotationsin classMechanism.Config
-
setMaxRotations
public void setMaxRotations(double maxRotations) -
getMinRotations
public double getMinRotations()- Overrides:
getMinRotationsin classMechanism.Config
-
setMinRotations
public void setMinRotations(double minRotations) -
getCurrentLimit
public double getCurrentLimit() -
getTorqueCurrentLimit
public double getTorqueCurrentLimit() -
getPositionKp
public double getPositionKp() -
getPositionKd
public double getPositionKd() -
getPositionKv
public double getPositionKv() -
getPositionKs
public double getPositionKs() -
getPositionKa
public double getPositionKa() -
getPositionKg
public double getPositionKg() -
getMmCruiseVelocity
public double getMmCruiseVelocity() -
getMmAcceleration
public double getMmAcceleration() -
getMmJerk
public double getMmJerk() -
getSensorToMechanismRatio
public double getSensorToMechanismRatio() -
setSensorToMechanismRatio
public void setSensorToMechanismRatio(double sensorToMechanismRatio) -
getRotorToSensorRatio
public double getRotorToSensorRatio() -
setRotorToSensorRatio
public void setRotorToSensorRatio(double rotorToSensorRatio) -
getCANcoderRotorToSensorRatio
public double getCANcoderRotorToSensorRatio() -
setCANcoderRotorToSensorRatio
public void setCANcoderRotorToSensorRatio(double CANcoderRotorToSensorRatio) -
getCANcoderSensorToMechanismRatio
public double getCANcoderSensorToMechanismRatio() -
setCANcoderSensorToMechanismRatio
public void setCANcoderSensorToMechanismRatio(double CANcoderSensorToMechanismRatio) -
getCANcoderOffset
public double getCANcoderOffset() -
setCANcoderOffset
public void setCANcoderOffset(double CANcoderOffset) -
isCANcoderAttached
public boolean isCANcoderAttached() -
setCANcoderAttached
public void setCANcoderAttached(boolean CANcoderAttached) -
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()
-