Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ac16f30
Changes
ryanelbert5125gmail Mar 15, 2026
0381d48
feat: make isSimulation final
ryanelbert5125gmail Mar 15, 2026
3ce3fb1
Changes
ryanelbert5125gmail Mar 15, 2026
1e26ea8
feat: make isSimulation final
ryanelbert5125gmail Mar 15, 2026
803e164
tmp
Iprobablydontknowwhatimdoing Mar 19, 2026
218dfe5
fix: everything. Still working on it. Will make
Iprobablydontknowwhatimdoing Mar 19, 2026
beb3c10
Merge branch 'Vision-V2' of https://github.com/IronRiders/rebuilt int…
Iprobablydontknowwhatimdoing Mar 19, 2026
d703e2e
fix: changed `< 0` to `>= 0` to align with expected behavior and prev…
Iprobablydontknowwhatimdoing Mar 20, 2026
e8ea8a2
style: removed redundant `CameraMode` enum
Iprobablydontknowwhatimdoing Mar 20, 2026
dbbea25
style: add @NonNull to some stuff to make it not yell at me
Iprobablydontknowwhatimdoing Mar 20, 2026
283051e
Change things to make them clearer
Iprobablydontknowwhatimdoing Mar 31, 2026
1158bd9
fix: imported VisonCamera to VisionSubsystem
Apr 3, 2026
6d031b0
fix: removed import to nonexistent file
Apr 3, 2026
9cc81d6
feat: changed camera data from map to enum to improve readability
Apr 5, 2026
674122a
fix: removed unused import
Iprobablydontknowwhatimdoing Apr 7, 2026
169a7c4
chore: Merge branch 'main' into Vision-V2
Iprobablydontknowwhatimdoing Apr 7, 2026
c117419
fix: added import to allow build
Iprobablydontknowwhatimdoing Apr 7, 2026
38bd8ff
feat: removed unused imports
Iprobablydontknowwhatimdoing Apr 7, 2026
8ca7ac2
feat: clarified "magic number"
Iprobablydontknowwhatimdoing Apr 7, 2026
4d9b76a
feat: moved 'magic #s' to constants file, added comments
Iprobablydontknowwhatimdoing Apr 7, 2026
6e3c27f
chore: removed unused imports
Iprobablydontknowwhatimdoing Apr 7, 2026
bf5bc81
chore: formatting
Iprobablydontknowwhatimdoing Apr 7, 2026
0fe9a3c
feet: added ROBOT_CENTER camera (for new camera mount)
Apr 7, 2026
52ff507
Merge branch 'Vision-V2' of https://github.com/IronRiders/rebuilt int…
Iprobablydontknowwhatimdoing May 14, 2026
50c5c6c
some logging
May 14, 2026
e6d01af
Fixed some syntax errors; disabled a non-existant camera mount.
May 14, 2026
4fd1d0d
Merge branch 'Vision-V2' of https://github.com/IronRiders/rebuilt int…
May 14, 2026
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
5 changes: 3 additions & 2 deletions src/main/java/org/ironriders/core/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

autonomousCommand.cancel();
}

RobotContainer.init();
}

Expand Down Expand Up @@ -106,7 +106,8 @@
PhotonCamera.setVersionCheckEnabled(false); // Silence camera not found warnings.

// teleport to the center of the field on startup.
DriveSubsystem.getSwerveDrive().getMapleSimDrive().orElseThrow().setSimulationWorldPose(FieldPositions.Field.CENTER);
DriveSubsystem.getSwerveDrive().getMapleSimDrive().orElseThrow()

Check warning on line 109 in src/main/java/org/ironriders/core/Robot.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/org/ironriders/core/Robot.java#L109 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'method def' child has incorrect indentation level 8, expected level should be 4.
Raw output
/github/workspace/src/main/java/org/ironriders/core/Robot.java:109:9: warning: 'method def' child has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
.setSimulationWorldPose(FieldPositions.Field.CENTER);
DriveSubsystem.getSwerveDrive().resetOdometry(FieldPositions.Field.CENTER);

DriverStationSim.setAllianceStationId(AllianceStationID.Blue1);
Expand Down
316 changes: 156 additions & 160 deletions src/main/java/org/ironriders/core/RobotContainer.java

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions src/main/java/org/ironriders/drive/DriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ public void periodic() {

TargetingControl.update();

//if (RobotContainer.passingZone.inside() && lastZone != RobotContainer.passingZone) {
// TargetingControl.targetPassing();
// lastZone = RobotContainer.passingZone;
//} else if (RobotContainer.scoringZone.inside() && lastZone != RobotContainer.scoringZone) {
// TargetingControl.targetHub();
// lastZone = RobotContainer.scoringZone;
//}
// if (RobotContainer.passingZone.inside() && lastZone !=
// RobotContainer.passingZone) {
// TargetingControl.targetPassing();
// lastZone = RobotContainer.passingZone;
// } else if (RobotContainer.scoringZone.inside() && lastZone !=
// RobotContainer.scoringZone) {
// TargetingControl.targetHub();
// lastZone = RobotContainer.scoringZone;
// }

if (Math.abs(RobotContainer.primaryController.getRightX()) > DriveConstants.DRIVE_OVERRIDE_THRESHOLD) {
RobotContainer.revertToSafeDefaults();
Expand Down
166 changes: 0 additions & 166 deletions src/main/java/org/ironriders/lib/VisionCamera.java

This file was deleted.

5 changes: 2 additions & 3 deletions src/main/java/org/ironriders/lib/field/FieldElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.stream.Stream;

import org.ironriders.lib.Utils;
import org.ironriders.vision.VisionSubsystem;
import org.ironriders.vision.VisionConstants;

/**
* Representation of an element on the field. Includes pose, function, and
Expand Down Expand Up @@ -110,12 +110,11 @@
return findNearest(pose, Optional.empty());
}

@SuppressWarnings("null")
private static List<FieldElement> loadElements(DriverStation.Alliance alliance, int[] tags) {
return Stream.of(Position.values())
.map(
element -> {
var pose = VisionSubsystem.tagLayout.getTagPose(tags[element.id]);
var pose = VisionConstants.TAG_FIELD_LAYOUT.getTagPose(tags[element.id]);

Check warning on line 117 in src/main/java/org/ironriders/lib/field/FieldElement.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/org/ironriders/lib/field/FieldElement.java#L117 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 100 characters (found 101).
Raw output
/github/workspace/src/main/java/org/ironriders/lib/field/FieldElement.java:117:0: warning: Line is longer than 100 characters (found 101). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)

Check warning on line 117 in src/main/java/org/ironriders/lib/field/FieldElement.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/org/ironriders/lib/field/FieldElement.java#L117 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'block' child has incorrect indentation level 28, expected level should be one of the following: 20, 22, 24, 26.
Raw output
/github/workspace/src/main/java/org/ironriders/lib/field/FieldElement.java:117:29: warning: 'block' child has incorrect indentation level 28, expected level should be one of the following: 20, 22, 24, 26. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
if (pose.isEmpty()) {
Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class IndexerSubsystem extends IronSubsystem {
private final IndexerCommands commands = new IndexerCommands(this);

private TalonFX motor = new TalonFX(IndexerConstants.ID);

private TalonFXConfiguration configuration;

public IndexerSubsystem() {
Expand Down
Loading
Loading