Skip to content

Commit

Permalink
Variable Name Changes
Browse files Browse the repository at this point in the history
Separate variables have been created for the different parts of the intake based off of their common names in the club. Additionally, earlier today I renamed what was INTAKE_MOTOR1 and INTAKE_MOTOR2 to SUSHI and FRONT respectively based off of clues found in other part of the code (specifically the intake code). ALL REFERENCES HAVE BEEN ADJUSTED ACCORDINGLY.
  • Loading branch information
EuphoniumPlayer committed Feb 16, 2024
1 parent fedd7c2 commit fe0ce34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public static class MechanismConstants {
public static final int INTAKE_MOTOR_FRONT = 52;
public static final boolean INTAKE_MOTOR_SUSHI_INVERTED = true;
public static final boolean INTAKE_MOTOR_FRONT_INVERTED = false;
public static final double INTAKE_MOTOR_SPEED = 0.25;
public static final double INTAKE_MOTOR_SPEED_FRONT = 0.25;
public static final double INTAKE_MOTOR_SPEED_SUSHI = 0.50;

// Conveyor Motors
public static final int CONVEYOR_MOTOR_1 = 1;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public Intake() {

/** Sets the intake motors to 100% power. */
public void enableIntake() {
intakeSushi.set(MechanismConstants.INTAKE_MOTOR_SPEED * 0.66);
intakeFront.set(MechanismConstants.INTAKE_MOTOR_SPEED);
intakeSushi.set(MechanismConstants.INTAKE_MOTOR_SPEED_SUSHI);
intakeFront.set(MechanismConstants.INTAKE_MOTOR_SPEED_FRONT);
}

/** Sets the intake motors to 0% power. */
Expand All @@ -36,8 +36,8 @@ public void disableIntake() {

/** Sets the intake motors to -100% power. (Reverse direction) */
public void reverseIntake() {
intakeSushi.set(-MechanismConstants.INTAKE_MOTOR_SPEED * 0.66);
intakeFront.set(-MechanismConstants.INTAKE_MOTOR_SPEED);
intakeSushi.set(-MechanismConstants.INTAKE_MOTOR_SPEED_SUSHI);
intakeFront.set(-MechanismConstants.INTAKE_MOTOR_SPEED_FRONT);
}

@Override
Expand Down

0 comments on commit fe0ce34

Please sign in to comment.