-
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.
* refactor: formatting * fix: commit intellij code formatting * bump: path planner * feat: clean up staging and shoot commands * feat: hide path diffs by default * fix: line endings and linguist language * refactor: consistent method naming for beam break checks
- Loading branch information
Showing
48 changed files
with
335 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/main/deploy/** linguist-language=JSON linguist-generated=true | ||
**/*.java text=auto |
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 |
---|---|---|
|
@@ -162,7 +162,7 @@ bin/ | |
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
out/ | ||
|
||
# Fleet | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
33 changes: 0 additions & 33 deletions
33
src/main/java/org/team1540/robot2024/commands/TrampCommand.java
This file was deleted.
Oops, something went wrong.
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
5 changes: 3 additions & 2 deletions
5
src/main/java/org/team1540/robot2024/commands/climb/ScoreInTrap.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
35 changes: 35 additions & 0 deletions
35
src/main/java/org/team1540/robot2024/commands/indexer/StageTrampCommand.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,35 @@ | ||
package org.team1540.robot2024.commands.indexer; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import org.team1540.robot2024.subsystems.indexer.Indexer; | ||
import org.team1540.robot2024.subsystems.tramp.Tramp; | ||
|
||
public class StageTrampCommand extends Command { | ||
|
||
private final Tramp tramp; | ||
private final Indexer indexer; | ||
|
||
public StageTrampCommand(Tramp tramp, Indexer indexer) { | ||
this.tramp = tramp; | ||
this.indexer = indexer; | ||
addRequirements(tramp, indexer); | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
tramp.setPercent(0.5); | ||
indexer.setFeederVelocity(-600); | ||
indexer.setIntakePercent(0.5); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
return tramp.isNoteStaged(); | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
indexer.stopFeeder(); | ||
tramp.stop(); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/org/team1540/robot2024/commands/shooter/PrepareShooterCommand.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 org.team1540.robot2024.commands.shooter; | ||
|
||
import edu.wpi.first.math.geometry.Rotation2d; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
import org.team1540.robot2024.subsystems.shooter.Shooter; | ||
|
||
class PrepareShooterCommand extends Command { | ||
private final Shooter shooter; | ||
|
||
public PrepareShooterCommand(Shooter shooter) { | ||
this.shooter = shooter; | ||
addRequirements(shooter); | ||
} | ||
@Override | ||
public void execute() { | ||
// TODO: Make this dynamically update based on estimated pose | ||
shooter.setFlywheelSpeeds(1000, 1000); | ||
shooter.setPivotPosition(Rotation2d.fromDegrees(30)); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
return shooter.areFlywheelsSpunUp() && shooter.isPivotAtSetpoint(); | ||
} | ||
} |
Oops, something went wrong.