mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix sim versionEntry NT table path (#569)
* Fix sim versionEntry NT table path * Fix compile issue that mainTable is not accessible form SimPhotonCamera * Fix format Co-authored-by: Matt <matthew.morley.ca@gmail.com> Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
This commit is contained in:
@@ -61,7 +61,9 @@ public class SimPhotonCamera extends PhotonCamera {
|
||||
targetAreaEntry = rootTable.getEntry("targetAreaEntry");
|
||||
targetSkewEntry = rootTable.getEntry("targetSkewEntry");
|
||||
targetPoseEntry = rootTable.getEntry("targetPoseEntry");
|
||||
versionEntry = rootTable.getEntry("versionEntry");
|
||||
|
||||
// The versionEntry is stored under the main table of <instance>/photonvision
|
||||
versionEntry = instance.getTable("photonvision").getEntry("version");
|
||||
|
||||
// Sets the version string so that it will always match the current version
|
||||
versionEntry.setString(PhotonVersion.versionString);
|
||||
|
||||
Reference in New Issue
Block a user