Package frc.robot.turret
Class Turret.TurretConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.turret.Turret.TurretConfig
- Enclosing class:
- Turret
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoublebooleanbooleanmodifyMotorConfig(com.ctre.phoenix6.hardware.TalonFX motor) voidsetCANcoderAttached(boolean CANcoderAttached) voidsetCANcoderOffset(double CANcoderOffset) voidsetCANcoderRotorToSensorRatio(double CANcoderRotorToSensorRatio) voidsetCANcoderSensorToMechanismRatio(double CANcoderSensorToMechanismRatio) voidsetReversed(boolean reversed) 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, getMaxRotations, getMinRotations, getMmPositionFOC, getMmPositionVoltage, getMmPositionVoltageSlot, getMmVelocityFOC, getMmVelocityVoltage, getName, getNumMotors, getPercentOutput, getTalonConfig, getTorqueCurrentFOC, getVelocityControl, getVelocityTorqueCurrentFOC, getVoltageCompSaturation, getVoltageControl, isAttached, setAttached, setFollowerConfigs, setTalonConfig
-
Constructor Details
-
TurretConfig
public TurretConfig()
-
-
Method Details
-
modifyMotorConfig
-
isReversed
public boolean isReversed() -
setReversed
public void setReversed(boolean reversed) -
getInitPosition
public double getInitPosition() -
getTriggerTolerance
public double getTriggerTolerance() -
getUnwrapTolerance
public double getUnwrapTolerance() -
getZeroSpeed
public double getZeroSpeed() -
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM() -
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() -
getSimRatio
public double getSimRatio() -
getLength
public double getLength()
-