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-12-22 10:32:18 +01:00
parent f0ce300744
commit 3e6e1f5c2b
5 changed files with 74 additions and 125 deletions
+6 -1
View File
@@ -85,7 +85,7 @@ __EXPORT extern hrt_abstime hrt_absolute_time(void);
/**
* Convert a timespec to absolute time.
*/
__EXPORT extern hrt_abstime ts_to_abstime(struct timespec *ts);
__EXPORT extern hrt_abstime ts_to_abstime(const struct timespec *ts);
/**
* Convert absolute time to a timespec.
@@ -191,6 +191,11 @@ __EXPORT extern void hrt_stop_delay(void);
*/
__EXPORT extern void hrt_stop_delay_delta(hrt_abstime delta);
__EXPORT extern hrt_abstime hrt_reset(void);
__EXPORT extern hrt_abstime hrt_absolute_time_offset(void);
#endif
__END_DECLS