Skip to content

Tag rejection#66

Merged
00magikarp merged 13 commits into
extending-hopperfrom
tag-rejection
Mar 14, 2026
Merged

Tag rejection#66
00magikarp merged 13 commits into
extending-hopperfrom
tag-rejection

Conversation

@write2shaunak-bot

Copy link
Copy Markdown
Contributor

No description provided.

@write2shaunak-bot write2shaunak-bot self-assigned this Feb 27, 2026
@write2shaunak-bot write2shaunak-bot requested review from a team and removed request for 00magikarp and SirBeans February 27, 2026 02:06

@SirBeans SirBeans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

glooks here son js one or two nitpiks

Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt Outdated
Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt Outdated
Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt Outdated
Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt Outdated
Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt Outdated
@00magikarp 00magikarp mentioned this pull request Feb 27, 2026
Comment thread src/main/kotlin/com/team4099/robot2026/subsystems/vision/Vision.kt
@write2shaunak-bot

Copy link
Copy Markdown
Contributor Author

yo what dis new auto spotless formatting

if (zMeters < 0.0) return false

val minBound = -fieldBoundaryToleranceMeters
val maxX = FieldConstants.fieldLength.inMeters + fieldBoundaryToleranceMeters

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

there's a hypot function in our units library btw

angularSpeed <= maxAngularSpeedForAcceptanceRadPerSec
}

fun calculateTagTrustScore(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

get rid of this function tbh (explained irl)

return weightedTrust.coerceIn(0.0, 1.0)
}

fun calculateTagTrust(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove


updateEstimationStdDevs(visionEst, result.getTargets())

poseMeasurementConsumer(poseEst, visionEst.get().timestampSeconds, curStdDevs)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

@00magikarp 00magikarp changed the base branch from master to extending-hopper March 14, 2026 18:18
@00magikarp 00magikarp merged commit b0db2b7 into extending-hopper Mar 14, 2026
@00magikarp 00magikarp deleted the tag-rejection branch March 14, 2026 18:19
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.

3 participants