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

Fix potential issues around tasks starting #403

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

mxgrey
Copy link
Contributor

@mxgrey mxgrey commented Feb 20, 2025

This PR fixes two potential issues that can come up around tasks starting:

  • Make the default threshold for charging the battery more reasonable. An exact 100.0% charge might never get reported by some batteries.
  • Direct tasks weren't triggering the _begin_next_task function of the TaskManager; instead they relied on the ROS timer to trigger it. Sometimes the ROS timer that periodically triggers _begin_next_task doesn't fire off for long periods of time, causing direct tasks to take inordinately long before they begin. With this PR, we always trigger _begin_next_task after a direct task request has been received.

@mxgrey mxgrey requested a review from xiyuoh February 20, 2025 13:41
Copy link
Member

@xiyuoh xiyuoh left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

2 participants