Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saurav banna/ball placement vis #3282

Conversation

sauravbanna
Copy link
Contributor

Please fill out the following before requesting review on this PR

Description

Testing Done

Resolved Issues

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

itsarune
itsarune previously approved these changes Jul 20, 2024
Comment on lines +143 to +149
time_since_start = int(time.time() - self.placement_start_time)
if time_since_start <= BALL_PLACEMENT_TIME_LIMIT_S:
self.ball_placement_countdown_graphic.setData(
text=f"{BALL_PLACEMENT_TIME_LIMIT_S - time_since_start}s"
)
else:
self.ball_placement_countdown_graphic.setData(text=f"{0}s")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we should update this to use the time remaining in the Referee proto (I think it has a value for the remaining time in there)

@itsarune
Copy link
Contributor

#3289 and #3303 addresses the work for porting this to be ready for master

@itsarune itsarune closed this Aug 15, 2024
@itsarune
Copy link
Contributor

Could you re-target it for master and re-open if it's ready @sauravbanna ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants