Slowdown message: More descriptive and less often

This commit is contained in:
Lorenz Meier 2016-12-24 10:24:24 +01:00
parent 5607df8a44
commit 8418be5fa5
1 changed files with 2 additions and 2 deletions

View File

@ -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);