mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
HRT sim: Remove outputs that smash simulator stack
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user