generated from Team488/FRCRobotTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Completed LobShotCommand * A little comment * Made command extend ParallelCommandGroup * Mapped to a button --------- Co-authored-by: Alex Schokking <[email protected]>
- Loading branch information
1 parent
498baf7
commit 90255b0
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/competition/commandgroups/PrepareToLobShotCommand.java
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,22 @@ | ||
package competition.commandgroups; | ||
|
||
import competition.subsystems.arm.ArmSubsystem; | ||
import competition.subsystems.arm.commands.SetArmExtensionCommand; | ||
import competition.subsystems.shooter.ShooterWheelSubsystem; | ||
import competition.subsystems.shooter.commands.WarmUpShooterCommand; | ||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
|
||
import javax.inject.Inject; | ||
|
||
public class PrepareToLobShotCommand extends ParallelCommandGroup { | ||
|
||
@Inject | ||
public PrepareToLobShotCommand(SetArmExtensionCommand setArmExtension, WarmUpShooterCommand warmUpShooter, | ||
ArmSubsystem arm) { | ||
warmUpShooter.setTargetRpm(ShooterWheelSubsystem.TargetRPM.LOB_SHOT); | ||
setArmExtension.setTargetExtension(ArmSubsystem.UsefulArmPosition.LOB_SHOT); | ||
|
||
this.addCommands(warmUpShooter, setArmExtension); | ||
} | ||
|
||
} |
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