Skip to content

Fix Issue of thunderscope not recognizing robots when ball is not on the field #3884

Description

@StarrryNight

Description of the task

When the ball is not on the field, thunderscope fails to recognize the robots and keeps printing the message:
"There are robots on the field, but no ball. It is highly likely that sensor fusion has filtered the ball out!"

Edit:
I took a quick look at sensor fusion.cpp. Turns out, the get_world function has a gate where it will only return the new world if BOTH the field and ball is present. If we initialize sensorfusion without the ball, the ball will always be a nullopt, meaning that thunderscope will never get the update world and thus the robots. Changing this gating should fix this issue.

Acceptance criteria

  • Diagnose why thunderscope fails to recongie the robots (or maybe it just failed to display?)
  • Fix the issue and verify the fix works in the max

Blocked By

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Difficulty - 3Easy and simple issues that require some context to doSensor Fusion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions