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_Airspeed: don't send AIRSPEED_AUTOCAL message when disabled #28793

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Dec 1, 2024

we were wasting bandwidth sending this all the time

also fixed to support calibration messages for 2nd airspeed sensor

the AIRSPEED_AUTOCAL message doesn't have an instance number
so we can only send it for one sensor at a time
*/
for (uint8_t i=0; i<AIRSPEED_MAX_SENSORS; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we send instances in turn? This doubles the bandwidth if you have two sensors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just added a break, it doesn't have an instance number, so can't usefully send more than one

we were wasting bandwidth sending this all the time

also fixed to support calibration messages for 2nd airspeed sensor
@tridge tridge force-pushed the pr-airspeed-autocal-msg branch from 4f1f8ae to 2e75d79 Compare December 10, 2024 03:12
@tridge tridge requested a review from IamPete1 December 10, 2024 03:12
@tridge tridge merged commit 00202bf into ArduPilot:master Dec 10, 2024
99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 4.6.0-beta2
Development

Successfully merging this pull request may close these issues.

2 participants