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

Airflow/Wind Sensor #1349

Open
wants to merge 7 commits into
base: sdf13
Choose a base branch
from
Open

Conversation

henrykotze
Copy link

@henrykotze henrykotze commented Nov 29, 2023

🎉 New feature

Summary

This adds an airflow sensor. These sensors are generally used to measure wind and are ultrasonic devices, measuring the airflow speed and direction using the Doppler effect.

Here is some use cases of such sensors from a manufacturer sensor which we have used.
https://fttechnologies.com/case-studies.

This is part of a larger plan to support an airflow sensor in PX4. @dagar

The code is heavily based on the Airspeed Sensor: #1215 .

Test it

Test are added to ensure correct use.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

henrykotze added 3 commits November 29, 2023 14:52
Copied Airspeed Sensor and renamed to Airflow

- Also already added airflow code where airspeed is found

made corresponding changes to fit airflow

new index number for airflow sensor

Added AirPressure header back

Testing for airflow sensor implemented

Add noise testing for airflow sensor

Python implementation for Airflow Sensor

Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
python/src/sdf/pyAirFlow.cc Outdated Show resolved Hide resolved
include/sdf/AirFlow.hh Outdated Show resolved Hide resolved
include/sdf/AirFlow.hh Outdated Show resolved Hide resolved

#include "sdf/AirFlow.hh"
#include "sdf/parser.hh"

Copy link
Collaborator

Choose a reason for hiding this comment

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

include "sdf/Noise.hh", "sdf/Element.hh", "sdf/Errors.hh"

Copy link
Author

Choose a reason for hiding this comment

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

Is this necessary if its added in the /sdf/Airflow.hh header?

src/Airflow_TEST.cc Outdated Show resolved Hide resolved
src/Airflow_TEST.cc Show resolved Hide resolved
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: Patch coverage is 85.39326% with 13 lines in your changes missing coverage. Please review.

Project coverage is 87.56%. Comparing base (edd5d0b) to head (adf9777).
Report is 18 commits behind head on sdf13.

Files Patch % Lines
python/src/sdf/pyAirFlow.cc 61.90% 8 Missing ⚠️
src/Sensor.cc 73.68% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            sdf13    #1349      +/-   ##
==========================================
- Coverage   87.58%   87.56%   -0.02%     
==========================================
  Files         128      130       +2     
  Lines       17095    17184      +89     
==========================================
+ Hits        14972    15048      +76     
- Misses       2123     2136      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Henry Kotzé and others added 2 commits December 1, 2023 09:47
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Henry Kotzé <[email protected]>
Signed-off-by: henrykotze <[email protected]>
@azeey azeey requested a review from ahcorde June 10, 2024 18:41
@azeey azeey added the beta Targeting beta release of upcoming collection label Jul 29, 2024
@azeey azeey removed the beta Targeting beta release of upcoming collection label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

4 participants