mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:53:34 +08:00
Changes for updated DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -920,7 +920,7 @@ test()
|
||||
/* read the sensor 5x and report each value */
|
||||
for (unsigned i = 0; i < 5; i++) {
|
||||
UpdateList in_set, out_set;
|
||||
in_set.push_back(&h);
|
||||
in_set.pushBack(&h);
|
||||
|
||||
/* wait for data to be ready */
|
||||
ret = DevMgr::waitForUpdate(in_set, out_set, 1000);
|
||||
@@ -1029,7 +1029,7 @@ calibrate(unsigned altitude)
|
||||
int ret;
|
||||
ssize_t sz;
|
||||
UpdateList in_set, out_set;
|
||||
in_set.push_back(&h);
|
||||
in_set.pushBack(&h);
|
||||
|
||||
/* wait for data to be ready */
|
||||
ret = DevMgr::waitForUpdate(in_set, out_set, 1000);
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <px4_workqueue.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user