Bump python projects to 2025.2.1 (#1705)

Blocked on robotpy release

---------

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
This commit is contained in:
Jade
2025-01-13 05:24:36 +08:00
committed by GitHub
parent 03ff9357d7
commit 5f75619063
6 changed files with 16 additions and 12 deletions

View File

@@ -604,10 +604,14 @@ def test_TagAmbiguity() -> None:
robotPose = Pose2d()
visionSysSim.update(robotPose)
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
tgt = camera.getLatestResult().getBestTarget()
assert tgt is not None
ambiguity = tgt.getPoseAmbiguity()
assert ambiguity > 0.5, "Tag ambiguity expected to be high"
robotPose = Pose2d(Translation2d(-2.0, -2.0), Rotation2d.fromDegrees(30.0))
visionSysSim.update(robotPose)
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
tgt = camera.getLatestResult().getBestTarget()
assert tgt is not None
ambiguity = tgt.getPoseAmbiguity()
assert 0 < ambiguity < 0.2, "Tag ambiguity expected to be high"