-
Notifications
You must be signed in to change notification settings - Fork 269
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
Added airspeed sensor #1847
Added airspeed sensor #1847
Conversation
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
What's the timeline of this being updated from a draft, would love to start using this upstream! |
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@osrf-jenkins run tests please! |
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Codecov Report
@@ Coverage Diff @@
## gz-sim7 #1847 +/- ##
===========================================
+ Coverage 64.68% 64.74% +0.06%
===========================================
Files 343 347 +4
Lines 27430 28776 +1346
===========================================
+ Hits 17743 18632 +889
- Misses 9687 10144 +457
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jennuine and @mjcarroll friendly ping, I would love to merge this, there is a PR in PX4 waiting for a while |
It looks good, it looks like there aren't tests to exercise some of the new functionality (at least according to coverage) can you add some? |
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@mjcarroll Added test 28135bb |
src/Util.cc
Outdated
// vel = parentVel->Data() * vel; | ||
// // keep going up the tree | ||
// v = _ecm.Component<components::ParentEntity>(v->Data()); | ||
// } |
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.
remove?
src/Util.cc
Outdated
} | ||
|
||
math::Vector3d vel = worldLinVel->Data(); | ||
auto v = _ecm.Component<components::ParentEntity>(_entity); |
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.
unused variable v
@@ -136,21 +136,20 @@ | |||
</vertical_velocity> | |||
</altimeter> | |||
</sensor> | |||
<sensor name="air_pressure" type="air_pressure"> | |||
<sensor name="air_speed" type="air_speed"> |
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.
should we add a new air_speed sensor (and keep the existing air_pressure sensor)?
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.
Do you also need to add the gz-sim-air-speed-system
?
test/integration/air_speed_system.cc
Outdated
@@ -0,0 +1,136 @@ | |||
/* | |||
* Copyright (C) 2019 Open Source Robotics Foundation |
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.
2019 - > 2023
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: henrykotze <henry@flycloudline.com>
Signed-off-by: Alejandro Hernández Cordero ahcorde@gmail.com
🎉 New feature
Summary
Added air speed sensor
Depends on:
Checklist
codecheck
passed (See contributing)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.