generated from frc1675/brownbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overloaded SpinUp constructor; added LongShot command on operator X b…
…utton press
- Loading branch information
1 parent
6e00522
commit 19ae102
Showing
7 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package frc.robot.cmdGroup; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.Constants; | ||
import frc.robot.arm.ArmSubsystem; | ||
import frc.robot.arm.commands.MoveToPosition; | ||
import frc.robot.shooter.ShooterSubsystem; | ||
import frc.robot.shooter.commands.Shoot; | ||
import frc.robot.shooter.commands.SpinUp; | ||
|
||
public class LongShot extends SequentialCommandGroup { | ||
public LongShot(ShooterSubsystem shooter, ArmSubsystem arm) { | ||
addCommands( | ||
new MoveToPosition(arm, Constants.Arm.LONG_SHOT_ANGLE), | ||
new SpinUp(shooter, Constants.Arm.LONG_SHOT_SPEED), | ||
new Shoot(shooter).withTimeout(Constants.Shooter.SHOOTER_SHOOT_TIME)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters