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

Custom std devs -> main #188

Merged
merged 4 commits into from
Feb 25, 2024
Merged

Custom std devs -> main #188

merged 4 commits into from
Feb 25, 2024

Conversation

PatribotsProgramming
Copy link
Member

@PatribotsProgramming PatribotsProgramming commented Feb 23, 2024

Given the impressive accuracy of the limelight when the camera can see more than one tag (megatag is so good)
But if there is only one tag, we can use our distance from the tag (along with ta) to change our standard deviations to accept pose estimations still while also taking into account the newfound noise that will be in the system.

A possible future for this PR would be to make a function of tag quality to standard deviation to make our inputs more or less valid based on where the "distance cutoff" is for only seeing one tag. Again, if we have two tags in view with one camera, that thing is accurate, no matter what.

The only thing that NEEDS to be tested is the idea of adding vision measurements through the periodic method of limelight and making limelight duplicatable (able to have two limelights)

@PatribotsProgramming PatribotsProgramming added enhancement New feature or request logic A logic problem or solution labels Feb 23, 2024
Copy link
Member

@Jacob1010-h Jacob1010-h left a comment

Choose a reason for hiding this comment

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

I think something is missing here...

src/main/java/frc/robot/subsystems/Limelight.java Outdated Show resolved Hide resolved
@PatribotsProgramming
Copy link
Member Author

ooookay we should be better now

Copy link
Member

@Jacob1010-h Jacob1010-h left a comment

Choose a reason for hiding this comment

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

This looks good now

@@ -90,6 +90,52 @@ && getRobotPoseTargetSpace().getTranslation().getNorm() < 3.25
}
}

private void updatePoseEstimator() {
Copy link
Member

Choose a reason for hiding this comment

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

Make sure to test this when the time comes

@Jacob1010-h Jacob1010-h merged commit a59bf5d into main Feb 25, 2024
1 check passed
@Jacob1010-h Jacob1010-h deleted the custom-std-devs branch February 25, 2024 02:06
@Jacob1010-h
Copy link
Member

I'm enjoying my dad's birthday, if you have anything else for me to review then just lmk 😉 I'll do it tonight

Ohh! Also what happened with network table manager

@GalexY727
Copy link
Member

It got replaced with a more stable class which allows for tuning all pid controllers, many many good
I am yet to make it hook into a hdc but that's kinda okay for right now.

@GalexY727
Copy link
Member

@Jacob1010-h ^

@Jacob1010-h
Copy link
Member

sounds good, I still wanted to make a base controller for a more general management of variables, but it looks fine for right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logic A logic problem or solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants