-
Notifications
You must be signed in to change notification settings - Fork 58
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 #404
base: gz-sensors7
Are you sure you want to change the base?
Airflow/Wind sensor #404
Conversation
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
- Still need to add resolution to measurement and add this to the sdf format Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
Signed-off-by: henrykotze <[email protected]>
74e844a
to
e067253
Compare
#ifndef GZ_SENSORS_AIRFLOWSENSOR_HH_ | ||
#define GZ_SENSORS_AIRFLOWSENSOR_HH_ | ||
|
||
#include <memory> |
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.
include chrono
#include <memory> | ||
|
||
#include <sdf/sdf.hh> | ||
|
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.
include gz::math::Vector3d
* limitations under the License. | ||
* | ||
*/ | ||
|
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.
include map
|
||
#include <sdf/sdf.hh> | ||
|
||
#include <gz/math/Helpers.hh> |
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.
include gz/math/pose.hh
* limitations under the License. | ||
* | ||
*/ | ||
|
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.
include string
, sstream
|
||
#include <memory> | ||
|
||
#include <sdf/sdf.hh> |
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.
Let's avoid including sdf/sdf.hh
since it includes all the headers available in libsdformat, which unnecessarily increases compile time.
GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ||
/// \brief Data pointer for private data | ||
/// \internal | ||
private: std::unique_ptr<AirFlowSensorPrivate> dataPtr; | ||
GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ||
}; |
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.
Can you use GZ_UTILS_IMPL_PTR
instead? (see
gz-sensors/include/gz/sensors/Distortion.hh
Line 103 in ec52913
GZ_UTILS_IMPL_PTR(dataPtr) |
|
||
#include <gtest/gtest.h> | ||
|
||
#include <sdf/sdf.hh> |
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.
Use specific headers in sdf
instead of sdf.hh
.
|
||
/// \brief AirFlow Sensor Class | ||
/// | ||
/// A sensor that reports air speed through differential pressure readings. |
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.
Can you update this comment and add a good description of how this sensor works?
🎉 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.
Depends on:
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
##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)
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.