Skip to content

Commit

Permalink
made another launch method for the heck of it lol
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawesomecat committed Feb 3, 2024
1 parent 7c72e0d commit 3c13b7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import edu.wpi.first.wpilibj2.command.Command;
import frc.team2412.robot.subsystems.LauncherSubsystem;
// this command activates the launcher

public class SetLaunchSpeedCommand extends Command {
private final LauncherSubsystem launcherSubsystem;
private final double launcherSpeed;
Expand All @@ -16,7 +16,7 @@ public SetLaunchSpeedCommand(LauncherSubsystem launcherSubsystem, double speed)

@Override
public void initialize() {
launcherSubsystem.launch();
launcherSubsystem.launch(launcherSpeed);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ public void launch() {
launcherTopMotor.set(speed);
launcherBottomMotor.set(speed);
}

public void launch(double speed){
launcherTopMotor.set(speed);
launcherBottomMotor.set(speed);
}
// returns the degrees of the angle of the launcher
public double getAngle() {
// get position returns a double in the form of rotations
Expand Down

0 comments on commit 3c13b7b

Please sign in to comment.