Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anhysteretic committed Nov 2, 2023
1 parent 0746db4 commit 1b90ed0
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 45 deletions.
74 changes: 36 additions & 38 deletions src/main/java/com/team841/Swerve23/Constants/ConstantsIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,39 @@

public final class ConstantsIO {

public enum robotStates{
disabled,
teleop,
autonomous
};

public static robotStates robotCurrentState;

public static boolean inTune = false;

public static final class CANID {

// Swerve falcons
public static final int kFrontRightDriveFalcon = 0;
public static final int kFrontRightTurnFalcon = 0;
public static final int kFrontLeftDriveFalcon = 0;
public static final int kFrontLeftTurnFalcon = 0;

public static final int kBackRightTurnFalcon = 0;
public static final int kBackRightDriveFalcon = 0;
public static final int kBackLeftDriveFalcon = 0;
public static final int kBackLeftTurnFalcon = 0;

// Canivore
public static final int kCanivore = 0;

// Cancoder
public static final int kFrontRightCancoder = 0;
public static final int kFrontLeftCancoder = 0;
public static final int kBackRightCancoder = 0;
public static final int kBackLeftCancoder = 0;

// Pigeon
public static final int kPigeon = 0;
}


}
public enum robotStates {
disabled,
teleop,
autonomous
};

public static robotStates robotCurrentState;

public static boolean inTune = false;

public static final class CANID {

// Swerve falcons
public static final int kFrontRightDriveFalcon = 0;
public static final int kFrontRightTurnFalcon = 0;
public static final int kFrontLeftDriveFalcon = 0;
public static final int kFrontLeftTurnFalcon = 0;

public static final int kBackRightTurnFalcon = 0;
public static final int kBackRightDriveFalcon = 0;
public static final int kBackLeftDriveFalcon = 0;
public static final int kBackLeftTurnFalcon = 0;

// Canivore
public static final int kCanivore = 0;

// Cancoder
public static final int kFrontRightCancoder = 0;
public static final int kFrontLeftCancoder = 0;
public static final int kBackRightCancoder = 0;
public static final int kBackLeftCancoder = 0;

// Pigeon
public static final int kPigeon = 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import com.team841.Swerve23.Drive.Drivetrain;

public final class SubsystemManifest {
public static Drivetrain drivetrain = new Drivetrain();
public static Drivetrain drivetrain = new Drivetrain();
}
4 changes: 1 addition & 3 deletions src/main/java/com/team841/Swerve23/Drive/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ public class Drivetrain extends SubsystemBase {
public Drivetrain() {}

@Override
public void periodic() {

}
public void periodic() {}
}
1 change: 0 additions & 1 deletion src/main/java/com/team841/Swerve23/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.team841.Swerve23.Constants.ConstantsIO;
import com.team841.Swerve23.Constants.ConstantsIO.robotStates;

import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/team841/Swerve23/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.team841.Swerve23.Constants.SubsystemManifest;
import com.team841.Swerve23.Drive.Drivetrain;

import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.team841.offseason2023.util;

import com.team841.Swerve23.Constants.ConstantsIO;

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

public class tunableNumber {
Expand Down

0 comments on commit 1b90ed0

Please sign in to comment.