POSIX: use lockstep_scheduler to fake time

This integrates the lockstep_scheduler, so that the system time is set
by the mavlink HIL_SENSOR message.

This means that the speed factor is removed and the speed is entirely
given by the simulator.
This commit is contained in:
Julian Oes
2018-10-15 15:00:29 +02:00
parent f0ce300744
commit 3e6e1f5c2b
5 changed files with 74 additions and 125 deletions

View File

@@ -97,6 +97,7 @@
// We don't poison usleep and sleep on NuttX because it is used in dependencies
// like uavcan and we don't need to fake time on the real system.
#include <unistd.h>
#include <time.h>
#define system_usleep usleep
#define system_sleep sleep