-
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
Showing
43 changed files
with
493 additions
and
387 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
22 changes: 22 additions & 0 deletions
22
src/main/java/frc/robot/aRobotOperations/CollectToFeeder.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 @@ | ||
// 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.aRobotOperations; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import frc.robot.Constants.IntakeConstants; | ||
import frc.robot.basicCommands.IntakeArmCommands.MoveIntakeArmToDegree; | ||
import frc.robot.basicCommands.IntakeCommands.IntakeSetSpeed; | ||
import frc.robot.basicCommands.feederCommands.FeedUntilNote; | ||
|
||
public class CollectToFeeder extends ParallelCommandGroup { | ||
/** Creates a new MoveIntakeToCollectNote. */ | ||
public CollectToFeeder() { | ||
|
||
addCommands( | ||
new MoveIntakeArmToDegree(IntakeConstants.GroundIntakePose), | ||
new IntakeSetSpeed(IntakeConstants.getNoteSpeed), | ||
new FeedUntilNote().andThen(new IntakeSetSpeed(0))); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/frc/robot/aRobotOperations/CollectToIntake.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,21 @@ | ||
// 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.aRobotOperations; | ||
|
||
import static frc.robot.Constants.IntakeArmConstants.*; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import frc.robot.basicCommands.IntakeArmCommands.MoveIntakeArmToDegree; | ||
import frc.robot.basicCommands.IntakeCommands.InatkeUntilNote; | ||
|
||
public class CollectToIntake extends ParallelCommandGroup { | ||
/** Creates a new CollectToIntake. */ | ||
public CollectToIntake() { | ||
addCommands( | ||
new MoveIntakeArmToDegree(intakeSetPoint), | ||
new InatkeUntilNote() | ||
); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/frc/robot/aRobotOperations/IntakeToFeeder.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 @@ | ||
// 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.aRobotOperations; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.basicCommands.IntakeArmCommands.MoveIntakeArmToDegree; | ||
import static frc.robot.Constants.IntakeArmConstants.*; | ||
|
||
public class IntakeToFeeder extends SequentialCommandGroup { | ||
|
||
/** Creates a new FeederIntakeCommandGroup. */ | ||
|
||
public IntakeToFeeder() { | ||
|
||
addCommands( | ||
new MoveIntakeArmToDegree(intakeSetPoint), | ||
new CollectToFeeder(), | ||
new MoveIntakeArmToDegree(trapSetPoint)); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/frc/robot/aRobotOperations/IntakeToTrap.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,25 @@ | ||
// 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.aRobotOperations; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.Constants.IntakeArmConstants; | ||
import frc.robot.Constants.IntakeConstants; | ||
import frc.robot.basicCommands.IntakeArmCommands.MoveIntakeArmToDegree; | ||
import frc.robot.basicCommands.IntakeCommands.IntakeSetSpeed; | ||
import frc.robot.basicCommands.TrapArmCommands.goInSwitchCommand; | ||
import frc.robot.basicCommands.TrapCommands.TrapCollectUntilNote; | ||
|
||
public class IntakeToTrap extends SequentialCommandGroup { | ||
/** Creates a new IntakeToTrap. */ | ||
public IntakeToTrap() { | ||
addCommands( | ||
new MoveIntakeArmToDegree(IntakeArmConstants.trapSetPoint) | ||
.alongWith(new goInSwitchCommand()), | ||
new TrapCollectUntilNote() | ||
.alongWith(new IntakeSetSpeed(IntakeConstants.getNoteSpeed)) | ||
); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/frc/robot/aRobotOperations/PrepareForShoot.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,20 @@ | ||
// 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.aRobotOperations; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import frc.robot.basicCommands.ShooterArmCommands.ShooterArmSpeakerAngle; | ||
import frc.robot.basicCommands.ShooterCommands.ShooterSpeakerSetSpeed; | ||
|
||
public class PrepareForShoot extends ParallelCommandGroup { | ||
/** Creates a new PrepareForShoot. */ | ||
public PrepareForShoot() { | ||
|
||
addCommands( | ||
new ShooterArmSpeakerAngle(), | ||
new ShooterSpeakerSetSpeed() | ||
); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/frc/robot/aRobotOperations/ShootSpeaker.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,18 @@ | ||
// 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.aRobotOperations; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; | ||
import frc.robot.basicCommands.feederCommands.FeedToShooter; | ||
|
||
public class ShootSpeaker extends ParallelCommandGroup { | ||
/** Creates a new ShootSpeaker. */ | ||
public ShootSpeaker() { | ||
addCommands( | ||
new PrepareForShoot(), | ||
new FeedToShooter() | ||
); | ||
} | ||
} |
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
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
Oops, something went wrong.