mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
deprecate hasTargets (#252)
hasTargets has the potential to allow users to inadvertantly create NPEs.
This commit is contained in:
@@ -115,6 +115,10 @@ class PhotonCamera {
|
||||
|
||||
/**
|
||||
* Returns whether the latest target result has targets.
|
||||
* This method is deprecated; {@link PhotonPipelineResult#hasTargets()} should
|
||||
* be used instead.
|
||||
* @deprecated This method should be replaced with {@link
|
||||
* PhotonPipelineResult#hasTargets()}
|
||||
* @return Whether the latest target result has targets.
|
||||
*/
|
||||
bool HasTargets() const { return GetLatestResult().HasTargets(); }
|
||||
|
||||
Reference in New Issue
Block a user