mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 15:54:07 +08:00
HRT sim: Remove outputs that smash simulator stack
This commit is contained in:
parent
587f4d8f33
commit
d69c53827f
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user