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

AP_Soaring: Rate limit the NVF publishers to 4Hz #29064

Merged

Conversation

Ryanf55
Copy link
Collaborator

@Ryanf55 Ryanf55 commented Jan 14, 2025

Follow up from today's dev call covering #29030, we should rate limit the named value float thermal estimates to avoid flooding the GCS link.
I chose 4Hz.

See ArduPilot/MAVProxy#1500 for test instructions.

To test, I checked the packet reception times in mavproxy to see they are ~4hz.
This code block is disabled by default.

./Tools/autotest/autotest.py build.Plane test.Plane.Soaring --map --speedup=1 --waf-configure-args "--define HAL_SOARING_NVF_EKF_ENABLED=1"

@Ryanf55 Ryanf55 force-pushed the soaring-rate-limit-nvf-publisher branch from 2a5d0c6 to 41ce81a Compare January 14, 2025 06:38
@amilcarlucas
Copy link
Contributor

It would be great if you could document that this table: https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduCopter#612-configure-logging

@peterbarker
Copy link
Contributor

It would be great if you could document that this table: https://ardupilot.github.io/MethodicConfigurator/TUNING_GUIDE_ArduCopter#612-configure-logging

Note that we're hoping these will be very temporary messages.

As in, it would be nice if 4.7 didn't go out the door with these.

libraries/AP_Soaring/AP_Soaring.cpp Outdated Show resolved Hide resolved
@Ryanf55 Ryanf55 force-pushed the soaring-rate-limit-nvf-publisher branch from 41ce81a to 817dd51 Compare January 21, 2025 02:02
@peterbarker
Copy link
Contributor

@Ryanf55 tested in its current form?

@Ryanf55
Copy link
Collaborator Author

Ryanf55 commented Jan 26, 2025

./Tools/autotest/autotest.py build.Plane test.Plane.Soaring --map --speedup=1 --waf-configure-args "--define HAL_SOARING_NVF_EKF_ENABLED=1"

Yep!
image

16 messages per second over 4 Named Values Floats gives us 4Hz. Working correctly.

Comment on lines +51 to +52
// store time of last NVT publish
#if HAL_SOARING_NVF_EKF_ENABLED
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// store time of last NVT publish
#if HAL_SOARING_NVF_EKF_ENABLED
#if HAL_SOARING_NVF_EKF_ENABLED
// store time of last NVT publish

@peterbarker peterbarker merged commit 3a5a2f6 into ArduPilot:master Jan 28, 2025
100 checks passed
@Ryanf55 Ryanf55 deleted the soaring-rate-limit-nvf-publisher branch January 28, 2025 06:23
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.

5 participants