Updating PhotonVision

PhotonVision provides many different files on a single release page. Each release contains JAR files for performing “offline updates” of a device with PhotonVision already installed, as well as full image files to “flash” to supported coprocessors.

Example GitHub release page

In the example release above, we see:

  • Image files for flashing directly to supported coprocessors.

  • JAR files for the suite of supported operating systems for use with Offline Update. In general:

    • Raspberry Pi, Limelight, and Orange Pi: use images suffixed with -linuxarm64.jar. For example: photonvision-v2024.1.1-linuxarm64.jar

    • Beelink and other Intel/AMD-based Mini-PCs: use images suffixed with -linuxx64.jar. For example: photonvision-v2024.1.1-linuxx64.jar

Offline Update

Unless noted in the release page, an offline update allows you to quickly upgrade the version of PhotonVision running on a coprocessor with PhotonVision already installed on it.

Unless otherwise noted on the release page, config files should be backward compatible with previous version of PhotonVision, and this offline update process should preserve any pipelines and calibrations previously performed. For paranoia, we suggest exporting settings from the Settings tab prior to performing an offline update.

Note

Carefully review release notes to ensure that reflashing the device (for supported devices) or other installation steps are not required, as dependencies needed for PhotonVision may change between releases

Installing Pre-Release Versions

Pre-release/development version of PhotonVision can be tested by installing/downloading artifacts from Github Actions (see below), which are built automatically on commits to open pull requests and to PhotonVision’s master branch, or by compiling PhotonVision locally.

Warning

If testing a pre-release version of PhotonVision with a robot, PhotonLib must be updated to match the version downloaded! If not, packet schema definitions may not match and unexpected things will occur.

Github Actions builds pre-release version of PhotonVision automatically on PRs and on each commit merged to master. To test a particular commit to master, navigate to the PhotonVision commit list and click on the check mark (below). Scroll to “Build / Build fat JAR - PLATFORM”, click details, and then summary. From here, JAR and image files can be downloaded to be flashed or uploaded using “Offline Update”.

Github Actions Badge Github Actions artifact list

Built JAR files (but not image files) can also be downloaded from PRs before they are merged. Navigate to the PR in GitHub, and select Checks at the top. Click on “Build” to display the same artifact list as above.

Github Actions artifacts from PR