From 8418be5fa5372c5d7c603a9e05273cef699e3c27 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 24 Dec 2016 10:24:24 +0100 Subject: [PATCH] Slowdown message: More descriptive and less often --- src/platforms/posix/px4_layer/drv_hrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/posix/px4_layer/drv_hrt.c b/src/platforms/posix/px4_layer/drv_hrt.c index 4f9b4e824c..c64bc8bf65 100644 --- a/src/platforms/posix/px4_layer/drv_hrt.c +++ b/src/platforms/posix/px4_layer/drv_hrt.c @@ -338,8 +338,8 @@ void hrt_stop_delay() _delay_interval += delta; _start_delay_time = 0; - if (delta > 10000) { - PX4_INFO("simulator is slow. Delay added: %" PRIu64 " us", delta); + if (delta > 100000) { + PX4_INFO("Computer load temporarily too high for real-time simulation. (slowdown delay: %" PRIu64 " us)", delta); } pthread_mutex_unlock(&_hrt_mutex);