uORB_tests: relax latency threshold on non-realtime SITL

This commit is contained in:
Daniel Agar 2024-11-20 13:19:15 -05:00
parent 8e288629d0
commit ada2bb4c42

View File

@ -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 {