mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-06 17:31:49 +08:00
Sim: Enforce boot order is correct, sim starts first
This commit is contained in:
1 parent
32bf4dc773
commit
5a1af860ab
3 files changed
+16
-1
No files matched your search
@@ -164,6 +164,15 @@ int simulator_main(int argc, char *argv[])
|
||||
1500,
|
||||
Simulator::start,
|
||||
argv);
|
||||
|
||||
// now wait for the command to complete
|
||||
while(true) {
|
||||
if (Simulator::getInstance() && Simulator::getInstance()->isInitialized()) {
|
||||
break;
|
||||
} else {
|
||||
usleep(100000);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user