Tag rejection#66
Merged
Merged
Conversation
SirBeans
requested changes
Feb 27, 2026
SirBeans
left a comment
Member
There was a problem hiding this comment.
glooks here son js one or two nitpiks
00magikarp
requested changes
Feb 27, 2026
Closed
00magikarp
requested changes
Mar 12, 2026
Contributor
Author
|
yo what dis new auto spotless formatting |
00magikarp
requested changes
Mar 13, 2026
| if (zMeters < 0.0) return false | ||
|
|
||
| val minBound = -fieldBoundaryToleranceMeters | ||
| val maxX = FieldConstants.fieldLength.inMeters + fieldBoundaryToleranceMeters |
Member
There was a problem hiding this comment.
there should be no tolerance. really there should be negative tolerance bc u can never have the center of ur robot on the edge of the field, but just 0 tolerance is satisfactory
| if (!insideFieldBounds) return false | ||
|
|
||
| val linearSpeed = | ||
| kotlin.math.hypot(chassisSpeeds.vx.inMetersPerSecond, chassisSpeeds.vy.inMetersPerSecond) |
Member
There was a problem hiding this comment.
there's a hypot function in our units library btw
| angularSpeed <= maxAngularSpeedForAcceptanceRadPerSec | ||
| } | ||
|
|
||
| fun calculateTagTrustScore( |
Member
There was a problem hiding this comment.
get rid of this function tbh (explained irl)
| return weightedTrust.coerceIn(0.0, 1.0) | ||
| } | ||
|
|
||
| fun calculateTagTrust( |
|
|
||
| updateEstimationStdDevs(visionEst, result.getTargets()) | ||
|
|
||
| poseMeasurementConsumer(poseEst, visionEst.get().timestampSeconds, curStdDevs) |
Member
There was a problem hiding this comment.
u should still be calling this, just add a check before doing it. in fact wrap everything from the inputs.frame update with the check for trust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.