Package frc.robot.elbow
Class Elbow.ElbowConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.elbow.Elbow.ElbowConfig
- Enclosing class:
- Elbow
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
getHome()
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
getNet()
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
getStage()
double
double
double
double
double
double
boolean
boolean
modifyMotorConfig
(com.ctre.phoenix6.hardware.TalonFX motor) setCANcoderAttached
(boolean CANcoderAttached) setCANcoderOffset
(double CANcoderOffset) setCANcoderRotorToSensorRatio
(double CANcoderRotorToSensorRatio) setCANcoderSensorToMechanismRatio
(double CANcoderSensorToMechanismRatio) setReversed
(boolean reversed) setRotorToSensorRatio
(double rotorToSensorRatio) setSensorToMechanismRatio
(double sensorToMechanismRatio) setSimRatio
(double simRatio) 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
-
ElbowConfig
public ElbowConfig()
-
-
Method Details
-
modifyMotorConfig
-
isReversed
public boolean isReversed() -
setReversed
- Returns:
this
.
-
getHandAlgae
public double getHandAlgae() -
getHome
public double getHome() -
getClearElevator
public double getClearElevator() -
getClimbPrep
public double getClimbPrep() -
getScoreDelay
public double getScoreDelay() -
getStationIntake
public double getStationIntake() -
getStationExtendedIntake
public double getStationExtendedIntake() -
getGroundAlgaeIntake
public double getGroundAlgaeIntake() -
getGroundCoralIntake
public double getGroundCoralIntake() -
getStage
public double getStage() -
getL1Coral
public double getL1Coral() -
getL2Coral
public double getL2Coral() -
getL2Score
public double getL2Score() -
getL3Coral
public double getL3Coral() -
getL3Score
public double getL3Score() -
getL4Coral
public double getL4Coral() -
getL4Score
public double getL4Score() -
getExL1Coral
public double getExL1Coral() -
getExL2Coral
public double getExL2Coral() -
getExL2Score
public double getExL2Score() -
getExL3Coral
public double getExL3Coral() -
getExL3Score
public double getExL3Score() -
getExL4Coral
public double getExL4Coral() -
getExL4Score
public double getExL4Score() -
getProcessorAlgae
public double getProcessorAlgae() -
getL2Algae
public double getL2Algae() -
getL3Algae
public double getL3Algae() -
getNet
public double getNet() -
getTolerance
public double getTolerance() -
getOffset
public double getOffset() -
getInitPosition
public double getInitPosition() -
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() -
getSlowMmAcceleration
public double getSlowMmAcceleration() -
getSlowMmJerk
public double getSlowMmJerk() -
getGroundMmAcceleration
public double getGroundMmAcceleration() -
getGroundMmJerk
public double getGroundMmJerk() -
getSensorToMechanismRatio
public double getSensorToMechanismRatio() -
setSensorToMechanismRatio
- Returns:
this
.
-
getRotorToSensorRatio
public double getRotorToSensorRatio() -
setRotorToSensorRatio
- Returns:
this
.
-
getCANcoderRotorToSensorRatio
public double getCANcoderRotorToSensorRatio() -
setCANcoderRotorToSensorRatio
- Returns:
this
.
-
getCANcoderSensorToMechanismRatio
public double getCANcoderSensorToMechanismRatio() -
setCANcoderSensorToMechanismRatio
- Returns:
this
.
-
getCANcoderOffset
public double getCANcoderOffset() -
setCANcoderOffset
- Returns:
this
.
-
isCANcoderAttached
public boolean isCANcoderAttached() -
setCANcoderAttached
- Returns:
this
.
-
getElbowX
public double getElbowX() -
getElbowY
public double getElbowY() -
getSimRatio
public double getSimRatio() -
setSimRatio
- Returns:
this
.
-
getLength
public double getLength() -
getStartingAngle
public double getStartingAngle()
-