This is a small fix for the PhotonPoseEstimator added in #1178, reviewed by. @mcm001 reviewed it an hour or two ago.
Before, on-coprocessor multi-tag would only run if the PhotonPipelineResult's targets list was populated. This list won't always have targets, even if there is a valid multi-tag result. So, multi-tag wouldn't run. The bug might also be present in the Java version of PhotonLib, but I haven't tested that.
Now, there is an exception in the update() method to allow multi-tag to run without a full targets list.
This is a small fix for the PhotonPoseEstimator added in #1178, reviewed by. @mcm001 reviewed it an hour or two ago.
Before, on-coprocessor multi-tag would only run if the
PhotonPipelineResult
'stargets
list was populated. This list won't always have targets, even if there is a valid multi-tag result. So, multi-tag wouldn't run. The bug might also be present in the Java version of PhotonLib, but I haven't tested that.Now, there is an exception in the
update()
method to allow multi-tag to run without a fulltargets
list.