Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision/drive to point #45

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Vision/drive to point #45

wants to merge 11 commits into from

Conversation

Ademfcan
Copy link

Why are we doing this?

added vision drive to point capabilities and new april tag camera locations for rear april tag cameras
Asana task URL:

Whats changing?

Questions/notes for reviewers

How this was tested

  • unit tests added
  • tested on robot

PR feedback legend

Symbol Meaning
⭐ ⭐ ⭐ must be addressed
⭐ ⭐ should be addressed
something to consider, a good idea

@Ademfcan Ademfcan requested a review from a team as a code owner January 25, 2025 23:52
build.gradle Outdated
@@ -99,6 +108,16 @@ dependencies {
annotationProcessor 'com.google.dagger:dagger-compiler:2.44.2'
testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.44.2'

// implementation "org.zeromq:jeromq:0.6.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ ⭐ ⭐ You've left a lot of commented out code behind. Can you please clean this up?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed the feedback on issues. Let me know if there's anything else to update!

Copy link
Contributor

@aschokking aschokking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excited to have xtables come onto the stage!


//allows for driving not in a straight line
public void retrieveWaypointsFromVision() {
if (this.xclient == null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ why not initialize this in the constructor? That way it can happen as the robot boots and the robot is disabled (so the time is cheap)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated this to create a shared instance in the vision subsystem. Let me know if there any other changes needed.

//allows for driving not in a straight line
public void retrieveWaypointsFromVision() {
if (this.xclient == null) {
this.xclient = new XTablesClient("192.168.0.17",9999,1736,1737);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ is this address stable? Should it be a StringProperty maybe so it's easy to change on each robot?

@Override
public void initialize() {
// noteAcquisitionMode = NoteAcquisitionMode.BlindApproach;
hasDoneVisionCheckYet = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ ⭐ it looks like this isn't being used for anything?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@@ -10,6 +10,8 @@
import competition.simulation.BaseSimulator;
import competition.subsystems.drive.DriveSubsystem;
import competition.subsystems.pose.PoseSubsystem;
//import edu.wpi.first.wpilibj.Preferences;
//import edu.wpi.first.wpilibj.simulation.DriverStationSim;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ please remove commented out code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

public Translation2d[] waypoints = null;
double maximumSpeedOverride = 0;
PoseSubsystem pose;
// VisionSubsystem vision;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ please remove commented out code throughout this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants