Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0190604
Saved elastic layout
RobototesProgrammers May 28, 2025
1ec7bbb
Elastic layout downloading tests
RobototesProgrammers May 30, 2025
466b06e
Spotless
RobototesProgrammers May 30, 2025
c634341
Remove blank line
RobototesProgrammers May 30, 2025
fe6c579
Added start for solo controller
Jetblackdragon Sep 19, 2025
e261298
All controls for solo controller
Jetblackdragon Sep 20, 2025
77b4bae
Merge branch 'main' of https://github.com/robototes/Reefscape2025 int…
Jetblackdragon Sep 20, 2025
d66fb27
spot
Jetblackdragon Sep 20, 2025
8a941ba
drive pratice changes
RobototesProgrammers Sep 21, 2025
c5f6f8e
V2 Set up for solo controls
Jetblackdragon Sep 24, 2025
e96486b
Override on driving when sticks are press down
Jetblackdragon Sep 24, 2025
d534668
dpot
Jetblackdragon Sep 24, 2025
fc7533b
LEDs for solo mode
TrisDooley Sep 24, 2025
460a687
Drive practice changes
RobototesProgrammers Sep 25, 2025
67b5733
Drive pracitce changes
RobototesProgrammers Sep 25, 2025
94dc7fc
Rebump up current limits
Jetblackdragon Sep 25, 2025
7d21c83
NO_GAME_PIECE mode actually works
Jetblackdragon Sep 25, 2025
d9c7bda
temp change to try and stop drive.
RobototesProgrammers Sep 26, 2025
eba139b
Test to see if this even changes anything
RobototesProgrammers Sep 26, 2025
e4a648d
Drive c
RobototesProgrammers Sep 28, 2025
b2d7d37
Code Clean up
Jetblackdragon Sep 28, 2025
820cddc
new net tech
RobototesProgrammers Sep 30, 2025
04934dc
Merge branch 'soloC2' into superstructure-barge-fix
RobototesProgrammers Oct 2, 2025
a20b2b3
merge solo controls
RobototesProgrammers Oct 2, 2025
49592cc
reset ground intake stall threshold
iamawesomecat Oct 6, 2025
be4eafe
Merge branch 'main' into superstructure-barge-fix
iamawesomecat Oct 6, 2025
02c6062
Merge branch 'main' into Elastic-setup
iamawesomecat Oct 6, 2025
7c5d3b7
connor change
RobototesProgrammers Oct 7, 2025
db254e0
Added EF autos to catch the Algae theives!
SnappleRamen Oct 7, 2025
2f86c74
Horizontal momentum
iamawesomecat Oct 7, 2025
ed1ce02
Fixed drivebase constant values?
SnappleRamen Oct 7, 2025
cf66f85
Revert "Test to see if this even changes anything"
SnappleRamen Oct 7, 2025
ae78d62
Fixed tuning values
SnappleRamen Oct 7, 2025
3fcbf2c
fixes
iamawesomecat Oct 8, 2025
25cdecd
Merge branch 'Elastic-setup' into superstructure-barge-fix
iamawesomecat Oct 8, 2025
e23defb
elastic camera streams
TrisDooley Oct 9, 2025
9cd7da0
merge conflicts fr
iamawesomecat Oct 9, 2025
795c19e
Merge branch 'EndOfShuffleboard' into superstructure-barge-fix
iamawesomecat Oct 9, 2025
af8589a
DC
RobototesProgrammers Oct 9, 2025
821d568
Prescore fix
RobototesProgrammers Oct 9, 2025
bcc43e3
Drive practice fixes
RobototesProgrammers Oct 9, 2025
b9f6734
spotless
iamawesomecat Oct 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,164 changes: 1,164 additions & 0 deletions src/main/deploy/elastic-layout.json

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions src/main/deploy/pathplanner/autos/OSMCounterAlgaeEF.auto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 81 additions & 0 deletions src/main/deploy/pathplanner/autos/OSWCounterAlgaeEF.auto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions src/main/deploy/pathplanner/paths/D to E.path

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions src/main/java/frc/robot/Controls.java
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ private void configureElevatorLEDBindings() {
}

s.elevatorLEDSubsystem.setDefaultCommand(
s.elevatorLEDSubsystem.showScoringMode(() -> soloScoringMode));
s.elevatorLEDSubsystem.showScoringMode(() -> soloScoringMode, intakeMode));

if (s.elevatorSubsystem != null) {
Trigger hasBeenZeroed = new Trigger(s.elevatorSubsystem::getHasBeenZeroed);
Expand Down Expand Up @@ -925,7 +925,15 @@ private void configureSoloControllerBindings() {
Command scoreCommand;
switch (soloScoringMode) {
case CORAL_IN_CLAW -> {
scoreCommand = getSoloCoralBranchHeightCommand();
scoreCommand =
getSoloCoralBranchHeightCommand()
.until(
() ->
soloController.a().getAsBoolean()
|| soloController.b().getAsBoolean()
|| soloController.x().getAsBoolean()
|| soloController.y().getAsBoolean());
;
}
case ALGAE_IN_CLAW -> {
Command bargeScoreCommand =
Expand Down Expand Up @@ -970,7 +978,13 @@ private void configureSoloControllerBindings() {
() -> {
Command scoreCommand =
switch (soloScoringMode) {
case CORAL_IN_CLAW -> getSoloCoralBranchHeightCommand();
case CORAL_IN_CLAW -> getSoloCoralBranchHeightCommand()
.until(
() ->
soloController.a().getAsBoolean()
|| soloController.b().getAsBoolean()
|| soloController.x().getAsBoolean()
|| soloController.y().getAsBoolean());
case ALGAE_IN_CLAW -> Commands.sequence(
superStructure.algaeProcessorScore(
soloController.rightBumper()),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

import au.grapplerobotics.CanBridge;
import com.pathplanner.lib.commands.FollowPathCommand;
import edu.wpi.first.net.WebServer;
import edu.wpi.first.wpilibj.DataLogManager;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.Filesystem;
import edu.wpi.first.wpilibj.PowerDistribution;
import edu.wpi.first.wpilibj.PowerDistribution.ModuleType;
import edu.wpi.first.wpilibj.RobotBase;
Expand Down Expand Up @@ -37,7 +39,6 @@ public static Robot getInstance() {
private final RobotType robotType;
public final Controls controls;
public final Subsystems subsystems;

public final Sensors sensors;
public final SuperStructure superStructure;
private final PowerDistribution PDH;
Expand Down Expand Up @@ -107,6 +108,7 @@ protected Robot() {
FollowPathCommand.warmupCommand().schedule();
}
MatchTab.create(sensors, subsystems);
WebServer.start(5800, Filesystem.getDeployDirectory().getPath());
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/generated/CompTunerConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class CompTunerConstants {

// The stator current at which the wheels start to slip;
// This needs to be tuned to your individual robot
private static final Current kSlipCurrent = Amps.of(80.0);
private static final Current kSlipCurrent = Amps.of(60.0);

// Initial configs for the drive and steer motors and the azimuth encoder; these cannot be null.
// Some configs will be overwritten; check the `with*InitialConfigs()` API documentation.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/sensors/ArmSensor.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class ArmSensor {

private final LaserCan mainSensor;
// VALUES ARE IN METERS
private static final double TROUGH_LOWER_LIMIT = 0.10;
private static final double TROUGH_UPPER_LIMIT = 0.20;
private static final double TROUGH_LOWER_LIMIT = 0.12;
private static final double TROUGH_UPPER_LIMIT = 0.22;
private static final double CLAW_LOWER_LIMIT = 0.01;
private static final double CLAW_UPPER_LIMIT = 0.09;

Expand Down
9 changes: 7 additions & 2 deletions src/main/java/frc/robot/sensors/ElevatorLight.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Hardware;
import frc.robot.util.ScoringMode;
import frc.robot.util.SoloScoringMode;
import java.util.function.DoubleSupplier;
import java.util.function.Supplier;
Expand Down Expand Up @@ -82,15 +83,19 @@ public Command animate(LEDPattern animation, String name) {
.withName("Animate" + name);
}

public Command showScoringMode(Supplier<SoloScoringMode> scoringMode) {
public Command showScoringMode(Supplier<SoloScoringMode> scoringMode, ScoringMode intakingMode) {
return run(() -> {
SoloScoringMode currentMode = scoringMode.get();
if (currentMode == SoloScoringMode.ALGAE_IN_CLAW) {
updateLEDs(LEDPattern.solid(Color.kTeal));
} else if (currentMode == SoloScoringMode.CORAL_IN_CLAW) {
updateLEDs(LEDPattern.solid(Color.kWhite));
} else if (currentMode == SoloScoringMode.NO_GAME_PIECE) {
updateLEDs(LEDPattern.solid(Color.kDeepPink));
if (intakingMode == ScoringMode.CORAL) {
updateLEDs(LEDPattern.solid(Color.kDarkOliveGreen));
} else if (intakingMode == ScoringMode.ALGAE) {
updateLEDs(LEDPattern.solid(Color.kChocolate));
}
}
})
.withName("Animate Scoring Mode");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/ArmPivot.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

public class ArmPivot extends SubsystemBase {
// Presets
private final double ARMPIVOT_KP = 50; // previously 38.5
private final double ARMPIVOT_KP = 38.5; // previously 50
private final double ARMPIVOT_KI = 0;
private final double ARMPIVOT_KD = 0;
private final double ARMPIVOT_KS = 0.1;
Expand Down Expand Up @@ -195,7 +195,7 @@ public void factoryDefaults() {
talonFXConfiguration.MotorOutput.NeutralMode = NeutralModeValue.Brake;

// enabling current limits
talonFXConfiguration.CurrentLimits.StatorCurrentLimit = 80;
talonFXConfiguration.CurrentLimits.StatorCurrentLimit = 40;
talonFXConfiguration.CurrentLimits.StatorCurrentLimitEnable = true;
talonFXConfiguration.CurrentLimits.SupplyCurrentLimit = 20;
talonFXConfiguration.CurrentLimits.SupplyCurrentLimitEnable = true;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/GroundArm.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class GroundArm extends SubsystemBase {
private final double ARMPIVOT_KV = 4;
private final double ARMPIVOT_KG = 0.048;
private final double ARMPIVOT_KA = 0;
public static final double STOWED_POSITION = 0.45;
public static final double STOWED_POSITION = 0.46;
public static final double UP_POSITION =
0.27; // untested - should be somewhere in between stowed and ground
public static final double GROUND_POSITION = -0.050;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/GroundSpinny.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void configMotors() {
configuration.MotorOutput.NeutralMode = NeutralModeValue.Brake;
cfg.apply(configuration);
// enabling stator current limits
currentLimits.StatorCurrentLimit = 40; // subject to change
currentLimits.StatorCurrentLimit = 100; // subject to change
currentLimits.StatorCurrentLimitEnable = true;
currentLimits.SupplyCurrentLimit = 20; // subject to change
currentLimits.SupplyCurrentLimitEnable = true;
Expand Down
Loading