Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ permissions:

on:
push:
branches: [ master ]
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ master ]
branches: [ main ]
merge_group:

concurrency:
Expand Down
10 changes: 5 additions & 5 deletions photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
version=versionString,
install_requires=[
"numpy~=2.1",
"wpilib<2026,>=2025.0.0b1",
"robotpy-wpimath<2026,>=2025.0.0b1",
"robotpy-apriltag<2026,>=2025.0.0b1",
"robotpy-cscore<2026,>=2025.0.0b1",
"pyntcore<2026,>=2025.0.0b1",
"wpilib<2026,>=2025.2.1",
"robotpy-wpimath<2026,>=2025.2.1",
"robotpy-apriltag<2026,>=2025.2.1",
"robotpy-cscore<2026,>=2025.2.1",
"pyntcore<2026,>=2025.2.1",
"opencv-python;platform_machine!='roborio'",
],
description=descriptionStr,
Expand Down
8 changes: 6 additions & 2 deletions photon-lib/py/test/visionSystemSim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion photonlib-python-examples/aimandrange/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[tool.robotpy]

# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"

# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
Expand Down
2 changes: 1 addition & 1 deletion photonlib-python-examples/aimattarget/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[tool.robotpy]

# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"

# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
Expand Down
2 changes: 1 addition & 1 deletion photonlib-python-examples/poseest/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[tool.robotpy]

# Version of robotpy this project depends on
robotpy_version = "2024.3.2.2"
robotpy_version = "2025.2.1"

# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
Expand Down