2022-03-19 21:31:34 -06:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// 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 frc4388.robot.commands.ShooterCommands;
|
|
|
|
|
|
|
|
|
|
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
|
|
|
|
|
import frc4388.robot.subsystems.BoomBoom;
|
|
|
|
|
import frc4388.robot.subsystems.Hood;
|
2022-04-07 11:35:07 -06:00
|
|
|
import frc4388.robot.subsystems.LED;
|
2022-03-19 21:31:34 -06:00
|
|
|
import frc4388.robot.subsystems.SwerveDrive;
|
|
|
|
|
import frc4388.robot.subsystems.Turret;
|
|
|
|
|
import frc4388.robot.subsystems.VisionOdometry;
|
|
|
|
|
|
|
|
|
|
// NOTE: Consider using this command inline, rather than writing a subclass. For more
|
|
|
|
|
// information, see:
|
|
|
|
|
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
|
|
|
|
public class Seek extends SequentialCommandGroup {
|
|
|
|
|
|
|
|
|
|
/** Seeks.
|
|
|
|
|
* Seeking -> Sought
|
|
|
|
|
* @author Aarav Shah
|
|
|
|
|
* @blame Aarav Shah (thomas did this)
|
|
|
|
|
*/
|
2022-04-07 11:35:07 -06:00
|
|
|
public Seek(SwerveDrive swerve, BoomBoom drum, Turret turret, Hood hood, VisionOdometry visionOdometry, LED leds) {
|
2022-03-19 21:31:34 -06:00
|
|
|
// Add your commands in the addCommands() call, e.g.
|
|
|
|
|
// addCommands(new FooCommand(), new BarCommand());
|
2022-04-07 11:35:07 -06:00
|
|
|
addCommands(new Shoot(swerve, drum, turret, hood, visionOdometry, false, false), new TrackTarget(turret, drum, hood, visionOdometry, leds));
|
2022-03-19 21:31:34 -06:00
|
|
|
}
|
2022-03-24 00:30:25 -06:00
|
|
|
|
|
|
|
|
/** Seeks.
|
|
|
|
|
* Seeking -> Sought
|
|
|
|
|
* @author Aarav Shah
|
|
|
|
|
* @blame Aarav Shah (thomas did this)
|
|
|
|
|
*/
|
2022-04-07 11:35:07 -06:00
|
|
|
public Seek(SwerveDrive swerve, BoomBoom drum, Turret turret, Hood hood, VisionOdometry visionOdometry, LED leds, double[] fakeOdo) {
|
2022-03-24 00:30:25 -06:00
|
|
|
// Add your commands in the addCommands() call, e.g.
|
|
|
|
|
// addCommands(new FooCommand(), new BarCommand());
|
2022-04-07 11:35:07 -06:00
|
|
|
addCommands(new Shoot(swerve, drum, turret, hood, visionOdometry, fakeOdo, false, false), new TrackTarget(turret, drum, hood, visionOdometry, leds));
|
2022-03-24 00:30:25 -06:00
|
|
|
}
|
2022-03-19 21:31:34 -06:00
|
|
|
}
|