Package frc.robot.elevator
Class Elevator.ElevatorConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.elevator.Elevator.ElevatorConfig
- Direct Known Subclasses:
PhotonElevatorConfig
- Enclosing class:
- Elevator
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configSupplyCurrentLimit
(double currentLimit) Use these method to set the config for the mechanism on each robotdouble
getAngle()
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
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
double
boolean
isPhoton()
setClawGroundAlgaeIntake
(double clawGroundAlgaeIntake) setClawGroundCoralIntake
(double clawGroundCoralIntake) setExl1Coral
(double exl1Coral) setExl2Coral
(double exl2Coral) setExl2Score
(double exl2Score) setExl3Coral
(double exl3Coral) setExl3Score
(double exl3Score) setExl4Coral
(double exl4Coral) setExl4Score
(double exl4Score) setFullExtend
(double fullExtend) setHome
(double home) setL1Coral
(double l1Coral) setL2Algae
(double l2Algae) setL2Coral
(double l2Coral) setL2Score
(double l2Score) setL3Algae
(double l3Algae) setL3Coral
(double l3Coral) setL3Score
(double l3Score) setL4Coral
(double l4Coral) setL4Score
(double l4Score) setMaxRotations
(double maxRotations) setMinRotations
(double minRotations) setNetAlgae
(double netAlgae) setPhoton
(boolean isPhoton) setProcessorAlgae
(double processorAlgae) setStationExtendedIntake
(double stationExtendedIntake) setStationIntake
(double stationIntake) 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
-
ElevatorConfig
public ElevatorConfig()
-
-
Method Details
-
configSupplyCurrentLimit
public void configSupplyCurrentLimit(double currentLimit) Use these method to set the config for the mechanism on each robot -
isPhoton
public boolean isPhoton() -
setPhoton
- Returns:
this
.
-
getMaxRotations
public double getMaxRotations()- Overrides:
getMaxRotations
in classMechanism.Config
-
setMaxRotations
- Returns:
this
.
-
getMinRotations
public double getMinRotations()- Overrides:
getMinRotations
in classMechanism.Config
-
setMinRotations
- Returns:
this
.
-
getFullExtend
public double getFullExtend() -
setFullExtend
- Returns:
this
.
-
getHome
public double getHome() -
setHome
- Returns:
this
.
-
getClawGroundAlgaeIntake
public double getClawGroundAlgaeIntake() -
setClawGroundAlgaeIntake
- Returns:
this
.
-
getClawGroundCoralIntake
public double getClawGroundCoralIntake() -
setClawGroundCoralIntake
- Returns:
this
.
-
getStationIntake
public double getStationIntake() -
setStationIntake
- Returns:
this
.
-
getStationExtendedIntake
public double getStationExtendedIntake() -
setStationExtendedIntake
- Returns:
this
.
-
getProcessorAlgae
public double getProcessorAlgae() -
setProcessorAlgae
- Returns:
this
.
-
getL2Algae
public double getL2Algae() -
setL2Algae
- Returns:
this
.
-
getL3Algae
public double getL3Algae() -
setL3Algae
- Returns:
this
.
-
getNetAlgae
public double getNetAlgae() -
setNetAlgae
- Returns:
this
.
-
getL1Coral
public double getL1Coral() -
setL1Coral
- Returns:
this
.
-
getL2Coral
public double getL2Coral() -
setL2Coral
- Returns:
this
.
-
getL2Score
public double getL2Score() -
setL2Score
- Returns:
this
.
-
getL3Coral
public double getL3Coral() -
setL3Coral
- Returns:
this
.
-
getL3Score
public double getL3Score() -
setL3Score
- Returns:
this
.
-
getL4Coral
public double getL4Coral() -
setL4Coral
- Returns:
this
.
-
getL4Score
public double getL4Score() -
setL4Score
- Returns:
this
.
-
getExl1Coral
public double getExl1Coral() -
setExl1Coral
- Returns:
this
.
-
getExl2Coral
public double getExl2Coral() -
setExl2Coral
- Returns:
this
.
-
getExl2Score
public double getExl2Score() -
setExl2Score
- Returns:
this
.
-
getExl3Coral
public double getExl3Coral() -
setExl3Coral
- Returns:
this
.
-
getExl3Score
public double getExl3Score() -
setExl3Score
- Returns:
this
.
-
getExl4Coral
public double getExl4Coral() -
setExl4Coral
- Returns:
this
.
-
getExl4Score
public double getExl4Score() -
setExl4Score
- Returns:
this
.
-
getTriggerTolerance
public double getTriggerTolerance() -
getElevatorIsUpHeight
public double getElevatorIsUpHeight() -
getElevatorIsHighHeight
public double getElevatorIsHighHeight() -
getInitPosition
public double getInitPosition() -
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM() -
getZeroSpeed
public double getZeroSpeed() -
getPositionKp
public double getPositionKp() -
getPositionKd
public double getPositionKd() -
getPositionKa
public double getPositionKa() -
getPositionKv
public double getPositionKv() -
getPositionKs
public double getPositionKs() -
getPositionKg
public double getPositionKg() -
getMmCruiseVelocity
public double getMmCruiseVelocity() -
getMmAcceleration
public double getMmAcceleration() -
getMmJerk
public double getMmJerk() -
getSlowMmAcceleration
public double getSlowMmAcceleration() -
getSlowMmJerk
public double getSlowMmJerk() -
getCurrentLimit
public double getCurrentLimit() -
getTorqueCurrentLimit
public double getTorqueCurrentLimit() -
getKElevatorGearing
public double getKElevatorGearing() -
getKCarriageMass
public double getKCarriageMass() -
getKElevatorDrumRadiusMeters
public double getKElevatorDrumRadiusMeters() -
getInitialX
public double getInitialX() -
getInitialY
public double getInitialY() -
getAngle
public double getAngle() -
getStaticLength
public double getStaticLength() -
getMovingLength
public double getMovingLength()
-