This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
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.
feat: shooter tuning and indexer tuning
- Loading branch information
1 parent
03beb15
commit 6c2151f
Showing
6 changed files
with
57 additions
and
9 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
22 changes: 22 additions & 0 deletions
22
src/main/java/org/team1540/bunnybotTank2023/commands/indexer/IndexerCommand.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 @@ | ||
package org.team1540.bunnybotTank2023.commands.indexer; | ||
|
||
import edu.wpi.first.wpilibj2.command.CommandBase; | ||
|
||
public class IndexerCommand extends CommandBase { | ||
private final Indexer indexer; | ||
|
||
public IndexerCommand(Indexer indexer) { | ||
this.indexer = indexer; | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
indexer.setBottomSpeed(0.75); | ||
indexer.setTopSpeed(0.75); | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
indexer.stop(); | ||
} | ||
} |
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