Skip to content

Commit

Permalink
fix(intake): Fixed package names
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitter499 committed Oct 20, 2023
1 parent 0e71dd0 commit 04a21d3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 41 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/robolancers321/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,5 @@ public static class IntakePID {
public static final double kI = 0.000;
public static final double kD = 0.000;
public static final double kFF = 0.0001;

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* (C) Robolancers 2024 */
package org.robolancers321;
package org.robolancers321.intake;

import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkMax.ControlType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
package frc.robot.commands;
/* (C) Robolancers 2024 */
package org.robolancers321.intake.commands;

import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants.IntakePID;
import frc.robot.subsystems.Intake;

public class RunIntake extends CommandBase {
public double velocity;
public double velocity;

Intake intake;
Intake intake;

public RunIntake(Intake intake, double velocity) {
this.intake = intake;
this.velocity = velocity;
addRequirements(intake);
}
public RunIntake(Intake intake, double velocity) {
this.intake = intake;
this.velocity = velocity;
addRequirements(intake);
}

@Override
public void initialize() {
intake.setIntakeVelocity(velocity);
}

@Override
public void end(boolean interrupted) {
intake.setIntakeVelocity(0);
}
@Override
public void initialize() {
intake.setIntakeVelocity(velocity);
}

@Override
public void end(boolean interrupted) {
intake.setIntakeVelocity(0);
}
}


Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
package frc.robot.commands;
/* (C) Robolancers 2024 */
package org.robolancers321.intake.commands;

import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants.IntakePID;
import frc.robot.subsystems.Intake;

public class RunOuttake extends CommandBase {
public double velocity;
public double velocity;

Intake intake;
Intake intake;

public RunOuttake(Intake intake, double velocity) {
this.intake = intake;
this.velocity = velocity;
addRequirements(intake);
}
public RunOuttake(Intake intake, double velocity) {
this.intake = intake;
this.velocity = velocity;
addRequirements(intake);
}

@Override
public void initialize() {
intake.setIntakeVelocity(-velocity);
}
@Override
public void initialize() {
intake.setIntakeVelocity(-velocity);
}

@Override
public void end(boolean interrupted) {
intake.setIntakeVelocity(0);
}
@Override
public void end(boolean interrupted) {
intake.setIntakeVelocity(0);
}
}

0 comments on commit 04a21d3

Please sign in to comment.