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/gps throttle message #51

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

Conversation

alexvaut
Copy link

@alexvaut alexvaut commented Aug 7, 2023

This goes along with ClemensElflein/xbot_positioning#3 to reduce the amount of gps messages when not needed.

@ClemensElflein
Copy link
Owner

Thank you for the PR! I think we can set it to a large value like every minute or even larger by default. This was basically only for me to see if switching on GPS works reliably.

@alexvaut
Copy link
Author

alexvaut commented Aug 8, 2023

I set it up by default to 60s

@@ -434,15 +434,15 @@ void checkSafety(const ros::TimerEvent &timer_event) {
// set this if we don't even have an orientation
high_level_status.gps_quality_percent = -1;
}
ROS_WARN_STREAM_THROTTLE(1,"Low quality GPS");
ROS_WARN_STREAM_THROTTLE(last_config.gps_message_throttle,"Low quality GPS");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could leave it as it but just not log it when !currentBehavior->needs_gps())?

@ClemensElflein
Copy link
Owner

I have merged the xbot_positioning PR.

I agree with olliewalsh that we should only print it, when GPS is actually needed

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