mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 15:00:35 +08:00
QuRT: updated task support based on posix fixes
The posix layer implementations should work on QuRT. QuRT needs to provide a way for getting the current time. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -52,6 +52,9 @@
|
||||
#include "px4_middleware.h"
|
||||
|
||||
static const char *commands =
|
||||
"x\n"
|
||||
"hello start"
|
||||
#if 0
|
||||
"uorb start\n"
|
||||
"simulator start -s\n"
|
||||
"barosim start\n"
|
||||
@@ -68,7 +71,9 @@ static const char *commands =
|
||||
"hil mode_pwm\n"
|
||||
"commander start\n"
|
||||
"list_devices\n"
|
||||
"list_topics\n";
|
||||
"list_topics\n"
|
||||
#endif
|
||||
;
|
||||
|
||||
|
||||
static void run_cmd(const vector<string> &appargs) {
|
||||
@@ -148,8 +153,13 @@ static void process_commands(const char *cmds)
|
||||
}
|
||||
}
|
||||
|
||||
namespace px4 {
|
||||
extern void init_once(void);
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
px4::init_once();
|
||||
px4::init(argc, argv, "mainapp");
|
||||
process_commands(commands);
|
||||
for (;;) {}
|
||||
|
||||
Reference in New Issue
Block a user