Skip to content

Commit

Permalink
Algae config (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejshah88 authored Jan 12, 2025
1 parent 08d63eb commit da4e4fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ public static class AUTO {
public static class constAlgaeIntake {
public static final double ALGAE_INTAKE_SPEED = 0.2;
public static final double ALGAE_OUTTAKE_SPEED = -0.2;
public static final TalonFXConfiguration ALGAE_INTAKE_CONFIG = new TalonFXConfiguration();

}

public static class constCoralOuttake {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/subsystems/AlgaeIntake.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.RobotMap.mapAlgaeIntake;
import frc.robot.Constants.constAlgaeIntake;

public class AlgaeIntake extends SubsystemBase {
TalonFX intakeMotor;

/** Creates a new AlgaeIntake. */
public AlgaeIntake() {
intakeMotor = new TalonFX(mapAlgaeIntake.ALGAE_MOTOR_CAN);

intakeMotor.getConfigurator().apply(constAlgaeIntake.ALGAE_INTAKE_CONFIG);

}

public void setAlgaeIntakeMotor(double speed) {
Expand Down

0 comments on commit da4e4fc

Please sign in to comment.