-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
Rover: allow WATER_DEPTH mavlink message rate to be specified #28875
Rover: allow WATER_DEPTH mavlink message rate to be specified #28875
Conversation
Here's the original PR that added support #17804 |
Hi @peterbarker, This looks good, what testing has been done? |
I found a convenient autotest, I also did a general size-check for sanity:
|
Location loc; | ||
IGNORE_RETURN(ahrs.get_location(loc)); | ||
|
||
for (uint8_t i=0; i<rangefinder->num_sensors(); i++) { |
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.
Should we cycle backends? Before this fix I have have the link be completely flooded on a vehicle with several rangefinders.
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.
Yes, we should.
See last commit on here: #28877
This PR fixed the partner's problem. |
Rover/GCS_Mavlink.cpp
Outdated
|
||
#if AP_RANGEFINDER_ENABLED | ||
#endif |
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.
Left over from a rebase?
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.
Not in this case - I moved the send-water-depth-code to be next to the send-rangefinder-code as the #if
s already existed and the methods are related....
Removed these lines.
... and reduce the default rate this is currently unconditionally streamed at 50Hz, chewing up all available bandwidth on some telemetry radios.
only compiled in on Rover at the moment. need to add an additional Rover-specific check for frame type, so move this code into Rover for now.
only compiled in on Rover at the moment. need to add an additional Rover-specific check for frame type, so move this code into Rover for now.
f364818
to
347d5f0
Compare
... and reduce the default rate
this is currently unconditionally streamed at 50Hz, chewing up all available bandwidth on some telemetry radios.