HRT sim: Remove outputs that smash simulator stack

This commit is contained in:
Lorenz Meier 2017-08-01 20:25:38 +02:00
parent 587f4d8f33
commit d69c53827f

View File

@ -339,17 +339,12 @@ void hrt_stop_delay_delta(hrt_abstime delta)
uint64_t delta_measured = _hrt_absolute_time_internal() - _start_delay_time;
if (delta_measured < delta) {
//PX4_WARN("Slim slowdown inaccurate: (slowdown delay: %" PRIu64 " us, true: %" PRIu64 " us)", delta, delta_measured);
delta = delta_measured;
}
_delay_interval += delta;
_start_delay_time = 0;
if (delta > 100000) {
PX4_WARN("Computer load temporarily too high for real-time simulation. (slowdown delay: %" PRIu64 " us)", delta);
}
pthread_mutex_unlock(&_hrt_mutex);
}
@ -361,10 +356,6 @@ void hrt_stop_delay()
_delay_interval += delta;
_start_delay_time = 0;
if (delta > 100000) {
PX4_WARN("Computer load temporarily too high for real-time simulation. (slowdown delay: %" PRIu64 " us)", delta);
}
pthread_mutex_unlock(&_hrt_mutex);
}