mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:43:33 +08:00
QuRT: enable uORB, and simulator
uORB, the simulator and simulated devices now run Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
* @author Mark Charlebois <mcharleb@gmail.com>
|
||||
*/
|
||||
#include "hrt_test.h"
|
||||
#include <px4_log.h>
|
||||
#include <px4_app.h>
|
||||
#include <px4_tasks.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -190,16 +190,20 @@ int VCDevExample::main()
|
||||
px4_close(fd);
|
||||
}
|
||||
else if (i > 0) {
|
||||
if (ret == 0)
|
||||
if (ret == 0) {
|
||||
PX4_INFO("==== Nothing to read - PASS\n");
|
||||
else
|
||||
}
|
||||
else {
|
||||
PX4_INFO("==== poll returned %d\n", ret);
|
||||
}
|
||||
}
|
||||
else if (i == 0) {
|
||||
if (ret == 1)
|
||||
if (ret == 1) {
|
||||
PX4_INFO("==== %d to read - %s\n", ret, fds[0].revents & POLLIN ? "PASS" : "FAIL");
|
||||
else
|
||||
}
|
||||
else {
|
||||
PX4_INFO("==== %d to read - FAIL\n", ret);
|
||||
}
|
||||
|
||||
}
|
||||
++i;
|
||||
|
||||
Reference in New Issue
Block a user