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

pr-bmp388 updates - measurement improvements from field testing #13128

Merged
merged 3 commits into from
Oct 14, 2019

Conversation

modaltb
Copy link
Contributor

@modaltb modaltb commented Oct 8, 2019

Describe problem solved by the proposed pull request
Improved measurement quality by oversampling, cleaned up task removing use of sleep in the task

Test data / coverage
Bench test comparison against Pixhawk 4 Mini showed equal or better measurement stability. Field testing showed large improvements with altitude hold compared to first pass at this driver.

Describe your preferred solution
Followed (most) of the settings defined by Bosch datasheet

Describe possible alternatives
N/A

Additional context
N/A

Improvements added after field testing.
Now using oversampling which has smoothed out the data.
Using the max measurement times from the Bosch datasheet instead of 'expected' to play it safe.
Removed 'sleep' from task and instead use the task poll rate for collect/measure cycle.
Fix build issue as master_v5x_sensors is a little behind master
@@ -45,13 +45,16 @@
BMP388::BMP388(IBMP388 *interface, const char *path) :
CDev(path),
ScheduledWorkItem(px4::device_bus_to_wq(interface->get_device_id())),
_px4_baro(interface->get_device_id()),
_px4_baro(interface->get_device_id(), ORB_PRIO_MAX),
Copy link
Member

Choose a reason for hiding this comment

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

Why ORB_PRIO_MAX? You might want to choose a slightly lower priority that still achieves what you want/need. Then if someone optionally connects a higher quality external barometer it can become the primary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I'll move to ORB_PRIO_DEFAULT

@modaltb
Copy link
Contributor Author

modaltb commented Oct 9, 2019

hey @dagar , so I'm getting close to submitting a PR for our FMU v5m board, but it uses this driver (which is currently in the master_v5x_sensors branch), and I'm looking to get the v5m board into master... What do think the best approach is?

@dagar dagar merged commit 6cc7e5a into PX4:master_v5x_sensors Oct 14, 2019
@dagar
Copy link
Member

dagar commented Oct 14, 2019

hey @dagar , so I'm getting close to submitting a PR for our FMU v5m board, but it uses this driver (which is currently in the master_v5x_sensors branch), and I'm looking to get the v5m board into master... What do think the best approach is?

Let's get these into master directly.

@modaltb
Copy link
Contributor Author

modaltb commented Oct 14, 2019

hey @dagar , so I'm getting close to submitting a PR for our FMU v5m board, but it uses this driver (which is currently in the master_v5x_sensors branch), and I'm looking to get the v5m board into master... What do think the best approach is?

Let's get these into master directly.

PR here: #13190
Thanks!

@modaltb modaltb deleted the pr-bmp388-updates branch October 24, 2019 18:28
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