-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…25 into vision/drive-to-point
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
src/main/java/competition/Robot.java
Outdated
@@ -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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
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
PR feedback legend