-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: main
Are you sure you want to change the base?
Conversation
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. |
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"); |
There was a problem hiding this comment.
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())
?
I have merged the xbot_positioning PR. I agree with olliewalsh that we should only print it, when GPS is actually needed |
This goes along with ClemensElflein/xbot_positioning#3 to reduce the amount of gps messages when not needed.