Skip to content

Commit

Permalink
Update import statements to use frc.robot.util.Constants
Browse files Browse the repository at this point in the history
  • Loading branch information
JediScoy committed Mar 28, 2024
1 parent 0835db9 commit 6f5700e
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 20 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import frc.robot.subsystems.Limelight;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.subsystems.WinchSubsystem2;
import frc.robot.util.Constants;
import frc.robot.subsystems.ShooterSubsystem2;
import frc.robot.subsystems.NoteSensorSubsystem;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/IntakeIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.util.Constants;

public class IntakeIndex extends SequentialCommandGroup {
IndexSubsystem index;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/RevAndShootCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;

import edu.wpi.first.wpilibj2.command.WaitUntilCommand;
import frc.robot.Constants;
import frc.robot.commands.IncrementIndex;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.util.Constants;

@SuppressWarnings("unused")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import edu.wpi.first.wpilibj2.command.WaitUntilCommand;
import frc.robot.Constants;
// import frc.robot.experimental.IncrementIndex;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.util.Constants;

@SuppressWarnings("unused")

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/RunShooter.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package frc.robot.commands;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.Constants;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.util.Constants;

public class RunShooter extends Command {
private ShooterSubsystemVelocity shooter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/ShootClose.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants;
import frc.robot.subsystems.ArmSubsystem;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.util.Constants;

public class ShootClose extends SequentialCommandGroup {
public ShootClose(ArmSubsystem arm, IndexSubsystem index, IntakeSubsystem intake, ShooterSubsystemVelocity shooter) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/ShootFromStage.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package frc.robot.commands;

import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants;
import frc.robot.experimental.ShootWhenReady;
import frc.robot.subsystems.ArmSubsystem;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.subsystems.NoteSensorSubsystem;
import frc.robot.subsystems.ShooterSubsystem2;
import frc.robot.util.Constants;

public class ShootFromStage extends SequentialCommandGroup {
public ShootFromStage(ArmSubsystem arm, IndexSubsystem index, IntakeSubsystem intake, ShooterSubsystem2 shooter2, NoteSensorSubsystem notesensor) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/experimental/IntakeIndexTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants;
import frc.robot.commands.SetIndex;
import frc.robot.commands.SetIntake;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.util.Constants;

public class IntakeIndexTimer extends ParallelCommandGroup {
IndexSubsystem index;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/experimental/ShootWhenReady.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package frc.robot.experimental;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.Constants;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.ShooterSubsystem2;
import frc.robot.util.Constants;
import frc.robot.subsystems.NoteSensorSubsystem;

@SuppressWarnings("unused")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/experimental/ShootWhenReady2.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package frc.robot.experimental;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.Constants;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.ShooterSubsystem2;
import frc.robot.util.Constants;
import frc.robot.subsystems.NoteSensorSubsystem;

@SuppressWarnings("unused")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package frc.robot.experimental;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.Constants;
import frc.robot.subsystems.ArmSubsystem;
import frc.robot.subsystems.IndexSubsystem;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.subsystems.ShooterSubsystem2;
import frc.robot.subsystems.ShooterSubsystemVelocity;
import frc.robot.util.Constants;
import frc.robot.subsystems.NoteSensorSubsystem;

@SuppressWarnings("unused")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ArmSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.ctre.phoenix6.signals.GravityTypeValue;

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

public class ArmSubsystem extends SubsystemBase {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/IndexSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.ctre.phoenix.motorcontrol.can.TalonSRX;

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

/*For indexing cargo. That is, taking cargo from a stored position and proceeding it to the shooter.*/
public class IndexSubsystem extends SubsystemBase {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// import com.playingwithfusion.TimeOfFlight.RangingMode;

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

/**
* Using a ToF sensor and a single motor
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/LedSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CANdle requires the Phoenix (v5) vendordep


import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

@SuppressWarnings("unused")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

public class NoteSensorSubsystem extends SubsystemBase {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ShooterSubsystem2.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

@SuppressWarnings("unused")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import edu.wpi.first.networktables.GenericEntry;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

@SuppressWarnings("unused")

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/WinchSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.ctre.phoenix6.hardware.TalonFX;

import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

/**
* Made of a motor, connected to a pulley. Contains manual drive for now.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/WinchSubsystem2.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ctre.phoenix6.controls.DutyCycleOut;
import com.ctre.phoenix6.hardware.TalonFX;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
import frc.robot.util.Constants;

public class WinchSubsystem2 extends SubsystemBase {

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/util/ArmConfigs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package frc.robot.util;

public class ArmConfigs {

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package frc.robot;
package frc.robot.util;

import com.ctre.phoenix6.configs.CurrentLimitsConfigs;
import com.ctre.phoenix6.configs.MotionMagicConfigs;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/util/WinchConfigs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package frc.robot.util;

public class WinchConfigs {

}

0 comments on commit 6f5700e

Please sign in to comment.