-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/SJJCoding/Crescendo2024
- Loading branch information
Showing
18 changed files
with
884 additions
and
313 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
25 changes: 25 additions & 0 deletions
25
src/main/java/frc/team2412/robot/commands/intake/AllInNoSensorCommand.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 @@ | ||
package frc.team2412.robot.commands.intake; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.team2412.robot.subsystems.IntakeSubsystem; | ||
|
||
public class AllInNoSensorCommand extends Command { | ||
private final IntakeSubsystem intakeSubsystem; | ||
|
||
public AllInNoSensorCommand(IntakeSubsystem intakeSubsystem) { | ||
this.intakeSubsystem = intakeSubsystem; | ||
addRequirements(intakeSubsystem); | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
intakeSubsystem.intakeIn(); | ||
intakeSubsystem.indexIn(); | ||
intakeSubsystem.feederIn(); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
return true; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/frc/team2412/robot/commands/intake/RumbleCommand.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,27 @@ | ||
package frc.team2412.robot.commands.intake; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.team2412.robot.Controls; | ||
|
||
public class RumbleCommand extends Command { | ||
private final Controls controls; | ||
|
||
public RumbleCommand(Controls controls) { | ||
this.controls = controls; | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
controls.vibrateDriveController(1.0); | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
controls.vibrateDriveController(0.0); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
return false; | ||
} | ||
} |
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.