Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Leek865 committed Jan 18, 2024
1 parent 46b1e59 commit 99d75b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/team766/robot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.team766.hal.JoystickReader;
import com.team766.hal.RobotProvider;
import com.team766.logging.Category;
import com.team766.robot.mechanisms.ShooterPrototype;
import com.team766.robot.procedures.*;

/**
Expand All @@ -31,9 +30,9 @@ public void run(final Context context) {
context.waitFor(() -> RobotProvider.instance.hasNewDriverStationData());
RobotProvider.instance.refreshDriverStationData();

context.takeOwnership(Robot.shooterPrototype);
context.takeOwnership(Robot.shooterPrototype);
Robot.shooterPrototype.setMotorPower(
// WORST MATH POSSIBLE LOL
// WORST MATH POSSIBLE LOL
(joystick0.getAxis(3) + 1) / -2.0 + 1,
(joystick1.getAxis(3) + 1) / -2.0 + 1,
Math.abs(joystick1.getAxis(1)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.team766.hal.MotorController;
import com.team766.hal.RobotProvider;
import com.team766.robot.constants.ShooterConstants;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

public class ShooterPrototype extends Mechanism {
Expand All @@ -22,9 +21,9 @@ public void setMotorPower(
final double leftPower, final double rightPower, final double feederPower) {
checkContextOwnership();

SmartDashboard.putNumber("leftPower", leftPower);
SmartDashboard.putNumber("rightPower", rightPower);
SmartDashboard.putNumber("feederPower", feederPower);
SmartDashboard.putNumber("leftPower", leftPower);
SmartDashboard.putNumber("rightPower", rightPower);
SmartDashboard.putNumber("feederPower", feederPower);
leftMotor.set(leftPower < ShooterConstants.CONTROLLER_DEADZONE ? 0 : leftPower);
rightMotor.set(rightPower < ShooterConstants.CONTROLLER_DEADZONE ? 0 : rightPower);
feederMotor.set(feederPower < ShooterConstants.CONTROLLER_DEADZONE ? 0 : feederPower);
Expand Down

0 comments on commit 99d75b5

Please sign in to comment.