Skip to content

Commit

Permalink
[#108] - cleaned up the code a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeistHo committed Jan 27, 2024
1 parent a7ec45f commit 329e743
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/frc/robot/command/chasePieces.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class ChasePieces extends Command {
private Swerve drivetrain;
private Limelight limelight;

private FieldCentric drive;
private RobotCentric noteChase;

private int limelightId = 0;
Expand All @@ -30,10 +29,6 @@ public class ChasePieces extends Command {
/**
* Creates a new ChasePieces.
* @param drivetrain to request movement
* @param driver the driver's controller, used for drive input
* @param limelight_name the name of the limelight to use
* @param useLimelights to get if we want to use vision data or not
* @param noteDetection to get if we want to use this for note detection or april tag detection
*/
public ChasePieces(Swerve drivetrain) {
this.drivetrain = drivetrain;
Expand All @@ -43,8 +38,6 @@ public ChasePieces(Swerve drivetrain) {

limelight.setPipeline(VisionConstants.NOTE_PIPELINE);

drive = new SwerveRequest.FieldCentric().withDriveRequestType(DriveRequestType.OpenLoopVoltage);//.withDeadband(DrivetrAinConstants.MaxSpeed * DrivetrAinConstants.SPEED_DB).withRotationalDeadband(DrivetrAinConstants.MaxAngularRate * DrivetrAinConstants.ROT_DB); // I want field-centric driving in closed loop

noteChase = new SwerveRequest.RobotCentric().withDriveRequestType(DriveRequestType.OpenLoopVoltage);

}
Expand Down

0 comments on commit 329e743

Please sign in to comment.