Package frc.robot.twist
Class Twist.TwistConfig
java.lang.Object
frc.spectrumLib.mechanism.Mechanism.Config
frc.robot.twist.Twist.TwistConfig
- Enclosing class:
- Twist
-
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism.Config
talonConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
edu.wpi.first.wpilibj.util.Color8Bit
double
double
double
double
double
double
double
double
edu.wpi.first.wpilibj.util.Color8Bit
double
double
double
double
double
double
double
getHome()
int
double
double
double
double
double
double
double
double
getNet()
double
double
double
double
double
double
double
double
double
double
double
double
double
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
-
TwistConfig
public TwistConfig()
-
-
Method Details
-
modifyMotorConfig
-
isReversed
public boolean isReversed() -
setReversed
- Returns:
this
.
-
getInitializedPosition
public int getInitializedPosition() -
getStageDelay
public double getStageDelay() -
getHome
public double getHome() -
getLollipopCoral
public double getLollipopCoral() -
getStationIntake
public double getStationIntake() -
getAlgaeIntake
public double getAlgaeIntake() -
getGroundAlgaeIntake
public double getGroundAlgaeIntake() -
getGroundCoralIntake
public double getGroundCoralIntake() -
getLeftCoral
public double getLeftCoral() -
getRightCoral
public double getRightCoral() -
getL1Coral
public double getL1Coral() -
getProcessorAlgae
public double getProcessorAlgae() -
getNet
public double getNet() -
getClimbPrep
public double getClimbPrep() -
getInitPosition
public double getInitPosition() -
getTriggerTolerance
public double getTriggerTolerance() -
getTwistTolerance
public double getTwistTolerance() -
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
- 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
.
-
getTwistX
public double getTwistX() -
getTwistY
public double getTwistY() -
getSimRatio
public double getSimRatio() -
setSimRatio
- Returns:
this
.
-
getCoralLength
public double getCoralLength() -
getAlgaeLength
public double getAlgaeLength() -
getCoralLineWeight
public double getCoralLineWeight() -
getAlgaeLineWeight
public double getAlgaeLineWeight() -
getCoralBaseAngle
public double getCoralBaseAngle() -
getAlgaeBaseAngle
public double getAlgaeBaseAngle() -
getCoralColor
public edu.wpi.first.wpilibj.util.Color8Bit getCoralColor() -
getAlgaeColor
public edu.wpi.first.wpilibj.util.Color8Bit getAlgaeColor()
-