-
Notifications
You must be signed in to change notification settings - Fork 1
refresh settings before applying #10
Copy link
Copy link
Open
Description
Robot-2025/src/main/java/frc/robot/subsystems/EndEffector/EndEffector.java
Lines 31 to 74 in b7461c4
| public void configureCoralMotor(){ | |
| SoftwareLimitSwitchConfigs m_softLimitConfig = new SoftwareLimitSwitchConfigs(); | |
| MotionMagicConfigs m_motionMagicConfigs = new MotionMagicConfigs(); | |
| MotorOutputConfigs m_motorConfig = new MotorOutputConfigs(); | |
| TalonFXConfiguration m_fxCfg = new TalonFXConfiguration(); | |
| Slot0Configs slot = new Slot0Configs(); | |
| slot.kV = EndEffectorConstants.CORAL_kV; | |
| slot.kS = EndEffectorConstants.CORAL_kS; | |
| slot.kP = EndEffectorConstants.CORAL_kP; | |
| slot.kI = EndEffectorConstants.CORAL_kI; | |
| slot.kD = EndEffectorConstants.CORAL_kD; | |
| m_coralMotor.getConfigurator().apply(slot); | |
| } | |
| public void configureAlgaeMotor(){ | |
| SoftwareLimitSwitchConfigs m_softLimitConfig = new SoftwareLimitSwitchConfigs(); | |
| MotionMagicConfigs m_motionMagicConfigs = new MotionMagicConfigs(); | |
| MotorOutputConfigs m_motorConfig = new MotorOutputConfigs(); | |
| TalonFXConfiguration m_fxCfg = new TalonFXConfiguration(); | |
| Slot0Configs slot = new Slot0Configs(); | |
| slot.kV = EndEffectorConstants.ALGAE_kV; | |
| slot.kS = EndEffectorConstants.ALGAE_kS; | |
| slot.kP = EndEffectorConstants.ALGAE_kP; | |
| slot.kI = EndEffectorConstants.ALGAE_kI; | |
| slot.kD = EndEffectorConstants.ALGAE_kD; | |
| m_algaeMotor.getConfigurator().apply(slot); | |
| } | |
| public void configureWristMotor(){ | |
| SoftwareLimitSwitchConfigs m_softLimitConfig = new SoftwareLimitSwitchConfigs(); | |
| MotionMagicConfigs m_motionMagicConfigs = new MotionMagicConfigs(); | |
| MotorOutputConfigs m_motorConfig = new MotorOutputConfigs(); | |
| TalonFXConfiguration m_fxCfg = new TalonFXConfiguration(); | |
| Slot0Configs slot = new Slot0Configs(); | |
| slot.kV = EndEffectorConstants.WRIST_kV; | |
| slot.kS = EndEffectorConstants.WRIST_kS; | |
| slot.kP = EndEffectorConstants.WRIST_kP; | |
| slot.kI = EndEffectorConstants.WRIST_kI; | |
| slot.kD = EndEffectorConstants.WRIST_kD; | |
| slot.kG = EndEffectorConstants.WRIST_kG; |
you should alwasy refresh configurators first before applying changes in order to not overwrite with zeros.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels