setCurrentPoseSupplier

fun setCurrentPoseSupplier(supplier: () -> Pose2d)

Sets a supplier for getting the current robot pose.

Used for rejecting outlier measurements and updating PhotonVision pose estimators.

Parameters

supplier

Function that returns the current robot pose.