Package frc.robot.shoulder
Class PhotonShoulderConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.shoulder.Shoulder.ShoulderConfig
frc.robot.shoulder.PhotonShoulderConfig
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
int
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
setSimRatio
(double simRatio) Methods inherited from class frc.robot.shoulder.Shoulder.ShoulderConfig
getAutonShoulderNetChecker, getCANcoderRotorToSensorRatio, getCANcoderSensorToMechanismRatio, getExL1Coral, getExL2Coral, getExL2Score, getExL3Coral, getExL3Score, getExL4Coral, getExL4Score, getGroundAlgaeIntake, getGroundCoralIntake, getHome, getL2Score, getL3Algae, getL3Score, getL4CoralScore, getNetAlgae, getPrescoreDelay, getProcessorAlgae, getRotorToSensorRatio, getScoreDelay, getSensorToMechanismRatio, getShoulderX, getShoulderY, getSlowMmAcceleration, getSlowMmJerk, getStationExtendedIntake, isPhoton, modifyMotorConfig, setAutonShoulderNetChecker, setCANcoderAttached, setCANcoderOffset, setCANcoderRotorToSensorRatio, setCANcoderSensorToMechanismRatio, setClimbPrep, setCurrentLimit, setExL1Coral, setExL2Coral, setExL2Score, setExL3Coral, setExL3Score, setExL4Coral, setExL4Score, setGroundAlgaeIntake, setGroundCoralIntake, setHoldMaxSpeedRPM, setHome, setInitPosition, setL1Coral, setL2Algae, setL2Coral, setL2Score, setL3Algae, setL3Coral, setL3Score, setL4Coral, setL4CoralScore, setMmAcceleration, setMmCruiseVelocity, setMmJerk, setNetAlgae, setOffset, setPhoton, setPositionKa, setPositionKd, setPositionKg, setPositionKp, setPositionKs, setPositionKv, setProcessorAlgae, setRotorToSensorRatio, setSensorToMechanismRatio, setSlowMmAcceleration, setSlowMmJerk, setStationExtendedIntake, setStationIntake, setTolerance, setTorqueCurrentLimit, setZeroSpeed
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
-
PhotonShoulderConfig
public PhotonShoulderConfig()
-
-
Method Details
-
getInitializedPosition
public int getInitializedPosition()- Overrides:
getInitializedPosition
in classShoulder.ShoulderConfig
-
getTolerance
public double getTolerance()- Overrides:
getTolerance
in classShoulder.ShoulderConfig
-
getOffset
public double getOffset()- Overrides:
getOffset
in classShoulder.ShoulderConfig
-
getInitPosition
public double getInitPosition()- Overrides:
getInitPosition
in classShoulder.ShoulderConfig
-
getClimbPrep
public double getClimbPrep()- Overrides:
getClimbPrep
in classShoulder.ShoulderConfig
-
getStationIntake
public double getStationIntake()- Overrides:
getStationIntake
in classShoulder.ShoulderConfig
-
getStationIntakeExtended
public double getStationIntakeExtended() -
getL1Coral
public double getL1Coral()- Overrides:
getL1Coral
in classShoulder.ShoulderConfig
-
getL2Coral
public double getL2Coral()- Overrides:
getL2Coral
in classShoulder.ShoulderConfig
-
getL3Coral
public double getL3Coral()- Overrides:
getL3Coral
in classShoulder.ShoulderConfig
-
getL4Coral
public double getL4Coral()- Overrides:
getL4Coral
in classShoulder.ShoulderConfig
-
getL2Algae
public double getL2Algae()- Overrides:
getL2Algae
in classShoulder.ShoulderConfig
-
getL3Alage
public double getL3Alage() -
getZeroSpeed
public double getZeroSpeed()- Overrides:
getZeroSpeed
in classShoulder.ShoulderConfig
-
getHoldMaxSpeedRPM
public double getHoldMaxSpeedRPM()- Overrides:
getHoldMaxSpeedRPM
in classShoulder.ShoulderConfig
-
getCurrentLimit
public double getCurrentLimit()- Overrides:
getCurrentLimit
in classShoulder.ShoulderConfig
-
getTorqueCurrentLimit
public double getTorqueCurrentLimit()- Overrides:
getTorqueCurrentLimit
in classShoulder.ShoulderConfig
-
getPositionKp
public double getPositionKp()- Overrides:
getPositionKp
in classShoulder.ShoulderConfig
-
getPositionKd
public double getPositionKd()- Overrides:
getPositionKd
in classShoulder.ShoulderConfig
-
getPositionKv
public double getPositionKv()- Overrides:
getPositionKv
in classShoulder.ShoulderConfig
-
getPositionKs
public double getPositionKs()- Overrides:
getPositionKs
in classShoulder.ShoulderConfig
-
getPositionKa
public double getPositionKa()- Overrides:
getPositionKa
in classShoulder.ShoulderConfig
-
getPositionKg
public double getPositionKg()- Overrides:
getPositionKg
in classShoulder.ShoulderConfig
-
getMmCruiseVelocity
public double getMmCruiseVelocity()- Overrides:
getMmCruiseVelocity
in classShoulder.ShoulderConfig
-
getMmAcceleration
public double getMmAcceleration()- Overrides:
getMmAcceleration
in classShoulder.ShoulderConfig
-
getMmJerk
public double getMmJerk()- Overrides:
getMmJerk
in classShoulder.ShoulderConfig
-
getCANcoderGearRatio
public double getCANcoderGearRatio() -
getCANcoderOffset
public double getCANcoderOffset()- Overrides:
getCANcoderOffset
in classShoulder.ShoulderConfig
-
isCANcoderAttached
public boolean isCANcoderAttached()- Overrides:
isCANcoderAttached
in classShoulder.ShoulderConfig
-
getPhotonShoulderX
public double getPhotonShoulderX() -
getPhotonShoulderY
public double getPhotonShoulderY() -
getSimRatio
public double getSimRatio()- Overrides:
getSimRatio
in classShoulder.ShoulderConfig
-
setSimRatio
- Overrides:
setSimRatio
in classShoulder.ShoulderConfig
- Returns:
this
.
-
getLength
public double getLength()- Overrides:
getLength
in classShoulder.ShoulderConfig
-