Sim: Enforce boot order is correct, sim starts first

This commit is contained in:
Lorenz Meier
2015-07-04 08:09:12 -07:00
parent 32bf4dc773
commit 5a1af860ab
3 changed files with 16 additions and 1 deletions
@@ -405,6 +405,7 @@ void Simulator::pollForMAVLinkMessages(bool publish)
pret = ::poll(&fds[0], (sizeof(fds[0])/sizeof(fds[0])), 100);
}
PX4_WARN("Found initial message, pret = %d",pret);
_initialized = true;
if (fds[0].revents & POLLIN) {
len = recvfrom(_fd, _buf, sizeof(_buf), 0, (struct sockaddr *)&_srcaddr, &_addrlen);