Skip to content

Commit

Permalink
try to fix The Weirdness(tm)
Browse files Browse the repository at this point in the history
  • Loading branch information
willitcode committed Feb 5, 2024
1 parent 42b173a commit 1e84869
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

package frc.robot;

import com.revrobotics.CANSparkLowLevel.MotorType;
import com.revrobotics.CANSparkMax;
import edu.wpi.first.math.MathUtil;
import edu.wpi.first.wpilibj.DoubleSolenoid;
Expand Down Expand Up @@ -42,8 +41,8 @@ public void robotInit() {
solenoid1 = new DoubleSolenoid(PneumaticsModuleType.CTREPCM, 6, 7);
solenoid2 = new DoubleSolenoid(PneumaticsModuleType.CTREPCM, 4, 5);
controller = new XboxController(0);
leftStickSparkMax = new CANSparkMax(3, MotorType.kBrushless);
rightStickSparkMax = new CANSparkMax(5, MotorType.kBrushless);
// leftStickSparkMax = new CANSparkMax(3, MotorType.kBrushless);
// rightStickSparkMax = new CANSparkMax(5, MotorType.kBrushless);
}

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

leftStickSparkMax.set(getScaledControllerLeftYAxis());
rightStickSparkMax.set(getScaledControllerRightYAxis());
// leftStickSparkMax.set(getScaledControllerLeftYAxis());
// rightStickSparkMax.set(getScaledControllerRightYAxis());
}

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

0 comments on commit 1e84869

Please sign in to comment.