From fbac24ad28f09f8741f7de5dd2f398620f56ee1b Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 16 Feb 2016 21:09:22 +0100 Subject: [PATCH] vdev_posix: switch back to CLOCK_REALTIME Otherwise SITL doesn't work anymore, at least on Linux --- src/drivers/device/vdev_posix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/device/vdev_posix.cpp b/src/drivers/device/vdev_posix.cpp index 7d4a7ce338..165c60d6ea 100644 --- a/src/drivers/device/vdev_posix.cpp +++ b/src/drivers/device/vdev_posix.cpp @@ -314,7 +314,8 @@ extern "C" { // Get the current time struct timespec ts; - px4_clock_gettime(CLOCK_MONOTONIC, &ts); + // FIXME: check if QURT should probably be using CLOCK_MONOTONIC + px4_clock_gettime(CLOCK_REALTIME, &ts); // Calculate an absolute time in the future const unsigned billion = (1000 * 1000 * 1000);