Skip to content

result.getBestTarget is not really returning sensible best target. #1832

Open
@trc492

Description

@trc492

https://discord.com/channels/725836368059826228/725848198794706994/1352340527999225949

When PhotonVision sees multiple AprilTags, what would result.getBestTarget return? I was assuming it will return the closest (largest) one but I found it not true. In this case, the robot was in front of the reef and saw two AprilTags (Tag 7 and 8) but it also saw April Tag 5 far away on the barge. Most of the time, getBestTarget actually returned Tag 5, why? Is there a way to control which one has the priority?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions