-
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.
- Loading branch information
1 parent
df58f42
commit 669ff27
Showing
17 changed files
with
198 additions
and
284 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
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,28 @@ | ||
// Copyright (c) 2024 - 2025 : FRC 2106 : The Junkyard Dogs | ||
// https://www.team2106.org | ||
|
||
// Use of this source code is governed by an MIT-style | ||
// license that can be found in the LICENSE file at | ||
// the root directory of this project. | ||
|
||
package frc.robot.commands.generic; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.commands.generic.CMD_Superstructure; | ||
import frc.robot.superstructure.SUB_Superstructure; | ||
import frc.robot.superstructure.SuperstructureState; | ||
|
||
public class CMD_Intake extends SequentialCommandGroup { | ||
public CMD_Intake(SUB_Superstructure superstructure) { | ||
|
||
//boolean isAtAnyCoralState = superstructure.getCurrentSuperstructureState(); | ||
|
||
|
||
addCommands( | ||
// Move to Coral Station state | ||
new CMD_Superstructure(superstructure, SuperstructureState.State.CORAL_STATION), | ||
|
||
// TODO: Auto idle intake after coral is sensed by the sensor | ||
new CMD_Superstructure(superstructure, SuperstructureState.State.IDLE)); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/frc/robot/commands/generic/CMD_IntakeCoral.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) 2024 - 2025 : FRC 2106 : The Junkyard Dogs | ||
// https://www.team2106.org | ||
|
||
// Use of this source code is governed by an MIT-style | ||
// license that can be found in the LICENSE file at | ||
// the root directory of this project. | ||
|
||
package frc.robot.commands.generic; | ||
|
||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.commands.generic.CMD_Superstructure; | ||
import frc.robot.superstructure.SUB_Superstructure; | ||
import frc.robot.superstructure.SuperstructureState; | ||
|
||
public class CMD_IntakeCoral extends SequentialCommandGroup { | ||
public CMD_IntakeCoral(SUB_Superstructure superstructure) { | ||
|
||
addCommands( | ||
// Move to Coral Station state | ||
new CMD_Superstructure(superstructure, SuperstructureState.State.CORAL_STATION), | ||
|
||
// TODO: Auto idle intake after coral is sensed by the sensor | ||
new CMD_Superstructure(superstructure, SuperstructureState.State.IDLE)); | ||
} | ||
} |
Oops, something went wrong.