Skip to content

Conversation

vincentw921
Copy link
Contributor

No description provided.

naowalrahman and others added 8 commits May 15, 2023 17:29
Co-authored-by: Myles Pasetsky <[email protected]>
Co-authored-by: reyamiller <[email protected]>
Co-authored-by: Richie Xue <[email protected]>
Co-authored-by: bananaeater321 <[email protected]>
Co-authored-by: reyamiller <[email protected]>
Co-authored-by: Edgar694 <[email protected]>
Remove limp in Robot.java
- abstract Vision Data class
- ReflectiveTapeData
- VisionImpl and Odometry updated to work with both types of data

Co-authored-by: Richie Xue <[email protected]>
}

// 330.0 (-30.0 degrees) is the pitch of the limelight
return Angle.fromDegrees(Limelight.getInstance().getTargetYAngle() - 330.0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where is the 330 from? If its the limelight pitch, you should create a constant in Settings for it


private Angle getYAngle() {
if (!hasAnyTarget()) {
// Settings.reportWarning("Unable To Find Target! [getYAngle() was called]");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just delete this line

private final IntegerEntry idEntry;
private final DoubleArrayEntry blueBotposeEntry;
private final DoubleArrayEntry redBotposeEntry;
private final NetworkTableEntry txEntry;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this should be a double entry. You guys should also have an entry for ty and maybe tv for checking if you have data or not.

blueBotposeEntry.get() :
redBotposeEntry.get();
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe implement a get distance function based off of Excelsior's code?

public boolean hasAnyTarget() {
return Limelight.getInstance().getValidTarget();
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe override the getPose function and just return a pose2d from the distance and angle you get from the reflective tape

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You guys also need to implement a swapping pipeline system for switching between reflective tape and apriltag mode

Look at this link for pipeline docs: https://docs.limelightvision.io/en/latest/networktables_api.html

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