-
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.
refactoring and cleanup before going to main
- Loading branch information
1 parent
a512f12
commit 702d677
Showing
21 changed files
with
14 additions
and
399 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
25 changes: 3 additions & 22 deletions
25
.../robot/commands/auto/drive/BasicAuto.java → ...t/commands/auto/backupAuto/BasicAuto.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 |
---|---|---|
@@ -1,46 +1,27 @@ | ||
package frc.robot.commands.auto.drive; | ||
package frc.robot.commands.auto.backupAuto; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import edu.wpi.first.wpilibj2.command.ParallelDeadlineGroup; | ||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import edu.wpi.first.wpilibj2.command.WaitCommand; | ||
import frc.robot.Constants; | ||
import frc.robot.commands.GyroOffsetCommand; | ||
import frc.robot.commands.auto.commands.GyroOffsetCommand; | ||
import frc.robot.commands.auto.commands.drive.AutoDriveCommand; | ||
import frc.robot.commands.indexer.IndexerIndexCommand; | ||
import frc.robot.commands.shamper.ShamperAngleCommand; | ||
import frc.robot.commands.shamper.ShamperManualShootCommand; | ||
import frc.robot.subsystems.DrivetrainSubsystem; | ||
import frc.robot.subsystems.IndexerSubsystem; | ||
import frc.robot.subsystems.ShamperSubsystem; | ||
import frc.robot.subsystems.ShamperSubsystem.ShamperSpeed; | ||
import frc.robot.util.calculator.ShootingAngleCalculator; | ||
|
||
|
||
public class BasicAuto extends SequentialCommandGroup { | ||
private String pointOnPodium; | ||
private DrivetrainSubsystem drivetrain; | ||
private ShamperSubsystem shamper; | ||
private IndexerSubsystem indexer; | ||
|
||
|
||
public BasicAuto (DrivetrainSubsystem drivetrain, ShamperSubsystem shamper, IndexerSubsystem indexer) { | ||
this.pointOnPodium = pointOnPodium; | ||
this.drivetrain = drivetrain; | ||
this.shamper = shamper; | ||
this.indexer = indexer; | ||
addCommands(new ParallelDeadlineGroup(new WaitCommand(1.5), new ShamperAngleCommand(shamper, Constants.Shamper.Angle.SUB)), | ||
new ParallelDeadlineGroup(new WaitCommand(2.5), new ShamperManualShootCommand(shamper, ShamperSpeed.SPEAKER_IDLE)), | ||
new ParallelDeadlineGroup(new WaitCommand(1), new IndexerIndexCommand(indexer)), | ||
new AutoDriveCommand(drivetrain, 1.5, -0.25, 0)); | ||
new GyroOffsetCommand(180); | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
...commands/auto/drive/AutoDriveCommand.java → ...auto/commands/drive/AutoDriveCommand.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
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
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.