mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uORB_tests: relax latency threshold on non-realtime SITL
This commit is contained in:
parent
8e288629d0
commit
ada2bb4c42
@ -146,7 +146,14 @@ int uORBTest::UnitTest::pubsublatency_main()
|
||||
|
||||
pubsubtest_passed = true;
|
||||
|
||||
if (mean > 150.0f) {
|
||||
#if defined(CONFIG_ARCH_BOARD_PX4_SITL)
|
||||
// relaxed on SITL (non-realtime)
|
||||
const float kMaxMeanUs = 1000.f; // 1000 microseconds
|
||||
#else
|
||||
const float kMaxMeanUs = 150.f; // 150 microseconds
|
||||
#endif
|
||||
|
||||
if (mean > kMaxMeanUs) {
|
||||
pubsubtest_res = PX4_ERROR;
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user