-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
060a58c
commit f171a17
Showing
2 changed files
with
34 additions
and
0 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
31 changes: 31 additions & 0 deletions
31
src/main/java/frc/robot/commands/feederCommands/FeederIntakeCommandGroup.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,31 @@ | ||
// 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 frc.robot.commands.feederCommands; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.commands.IntakeArmCommands.MoveIntakeArmToDegree; | ||
import frc.robot.subsystems.FeederSubsystem; | ||
import frc.robot.subsystems.IntakeArmSubsystem; | ||
import static frc.robot.Constants.IntakeArm.*; | ||
import static frc.robot.Constants. FeederConstants.*; | ||
|
||
// 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 FeederIntakeCommandGroup extends SequentialCommandGroup { | ||
|
||
/** Creates a new FeederIntakeCommandGroup. */ | ||
private static IntakeArmSubsystem intakeArmSubsystem = IntakeArmSubsystem.getInstance(); | ||
private static FeederSubsystem feederSubsystem = FeederSubsystem.getInstance(); | ||
|
||
|
||
public FeederIntakeCommandGroup() { | ||
addRequirements(intakeArmSubsystem); | ||
addRequirements(feederSubsystem); | ||
// Add your commands in the addCommands() call, e.g. | ||
// addCommands(new FooCommand(), new BarCommand()); | ||
addCommands(new MoveIntakeArmToDegree(intakeDegree),new MoveIntakeArmToDegree(feederDegree) ,new FeederSetSpeed(FeederMotorSpeed)); // wating fot yair code for intake | ||
} | ||
} |