PhotonVision PhotonPoseEstimater getting latency

Using PhotonPoseEstimator to get the estimated field pose. Is there a way to get the latency of the estimate

The EstimatedRobotPose object type has a timestampSeconds, but I’m not sure if this is the latency and have no way to get the result’s built in getLatency method.

I’m using MULTI_TAG_PNP_ON_COPROCESSOR pose estimate strategy

Not sure about the internal latency function, but
Timer.getFPGATimestamp() - resultTimestamp should do what you want?
Why would you need the latency?

1 Like