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

Magnetometer filter warning modified #53

Merged
merged 4 commits into from
Jun 8, 2023
Merged

Conversation

DavidPaddy97
Copy link

@DavidPaddy97 DavidPaddy97 commented Jun 7, 2023

Problem

In short, each mag has its own filter (implemented by us), and that warning flags when any of the mag filters are disabled due to sampling too slowly. Therefore the CAN mags will continue flagging this every 10s even though we're using the I2C mag which is working properly with its filter.

Solution

Initially this warning would trigger every 10s (one generic 'warning_last' that covers all mags) if any of the mags were being filtered inappropriately (leading to disabling of its filter). Now, the warning only triggers for the primary magnetometer. The functionality of the filters does not change, only which magnetometer the pilot is alerted to when its filter fails.

Additional Changes

Updated the macOS environment version to macOS-11 as macOS-10.15 tests would queue but no worker would be assigned.
Suspected due to actions/runner-images#5583

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2023

Codecov Report

❗ No coverage uploaded for pull request base (v1.13.1_dev@b7ad225). Click here to learn what that means.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@              Coverage Diff               @@
##             v1.13.1_dev      #53   +/-   ##
==============================================
  Coverage               ?   58.71%           
==============================================
  Files                  ?      957           
  Lines                  ?    83029           
  Branches               ?        0           
==============================================
  Hits                   ?    48748           
  Misses                 ?    34281           
  Partials               ?        0           
Flag Coverage Δ
mavsdk 38.37% <0.00%> (?)
unittests 43.04% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@DavidPaddy97 DavidPaddy97 merged commit 7ae25ee into v1.13.1_dev Jun 8, 2023
@DavidPaddy97 DavidPaddy97 deleted the dp_mag_warning_fix branch June 8, 2023 10:03
@DavidPaddy97 DavidPaddy97 changed the title Magnetometer filter warning changed to only alert pilot of primary magnetometer Magnetometer filter warning modified Jul 6, 2023
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.

2 participants