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

Limelight #10

Open
sprice134 opened this issue Mar 4, 2020 · 3 comments
Open

Limelight #10

sprice134 opened this issue Mar 4, 2020 · 3 comments

Comments

@sprice134
Copy link
Collaborator

DOCUMENTATION
https://docs.limelightvision.io/en/latest/getting_started.html
USEFUL SAMPLE CODE
https://docs.limelightvision.io/en/latest/cs_drive_to_goal_2019.html

@cmarley3-14
Copy link
Collaborator

will need to sort out controller buttons for pipelines, or something to switch where necessary. honestly, just point a camera at the floor and drive.
NetworkTableInstance.getDefault().getTable("limelight").getEntry("pipeline").setNumber(<value>);

@sprice134
Copy link
Collaborator Author

https://docs.limelightvision.io/en/latest/crosshair_calibration.html
For dual crosshair to allow us to go from any range of values. A of the crosshair is at 8 feet (10 with a 2 feet margin of error) and B of the crosshair is at the back of the no contact zone. The robot will line up rotationally, get a distance to calculate the angle, and as long as we have a Y-axis that exists in between point A and Point B, we will be lined up and can shoot

@sprice134
Copy link
Collaborator Author

Also, for the veneno code, we also don't need to neccesarily do:
if (autoTimer > 670) {
if (m_gyro.getAngle() > 20) { // will use limelight target exists boolean
m_drive.arcadeDrive(1.0, 0);
} else {
Update_Limelight_Tracking(); // need to tune above gyro code : check drift
}
if (!aligning)
m_ball.resetShooter();
Since we are doing proportion controlled driving, the farther off we are the faster we will turn
We can just set it that if tv == 0, turn at 1, otherwise align the way it already does

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

No branches or pull requests

2 participants