Skip to content

Commit

Permalink
more descriptive spark max names
Browse files Browse the repository at this point in the history
  • Loading branch information
willitcode committed Feb 2, 2024
1 parent d0e54ee commit 42b173a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class Robot extends TimedRobot {
public DoubleSolenoid solenoid1;
public DoubleSolenoid solenoid2;
public static XboxController controller;
public CANSparkMax sparkMax1;
public CANSparkMax sparkMax2;
public CANSparkMax leftStickSparkMax;
public CANSparkMax rightStickSparkMax;

/**
* This function is run when the robot is first started up and should be used for any
Expand All @@ -42,8 +42,8 @@ public void robotInit() {
solenoid1 = new DoubleSolenoid(PneumaticsModuleType.CTREPCM, 6, 7);
solenoid2 = new DoubleSolenoid(PneumaticsModuleType.CTREPCM, 4, 5);
controller = new XboxController(0);
sparkMax1 = new CANSparkMax(1, MotorType.kBrushless);
sparkMax2 = new CANSparkMax(2, MotorType.kBrushless);
leftStickSparkMax = new CANSparkMax(3, MotorType.kBrushless);
rightStickSparkMax = new CANSparkMax(5, MotorType.kBrushless);
}

/**
Expand Down Expand Up @@ -91,8 +91,8 @@ public void teleopPeriodic() {
solenoid2.set(Value.kOff);
}

sparkMax1.set(getScaledControllerLeftYAxis());
sparkMax2.set(getScaledControllerRightYAxis());
leftStickSparkMax.set(getScaledControllerLeftYAxis());
rightStickSparkMax.set(getScaledControllerRightYAxis());
}

/** This function is called once when the robot is disabled. */
Expand Down

0 comments on commit 42b173a

Please sign in to comment.