mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:13:34 +08:00
uORB_tests: relax latency threshold on non-realtime SITL
This commit is contained in:
@@ -146,7 +146,14 @@ int uORBTest::UnitTest::pubsublatency_main()
|
|||||||
|
|
||||||
pubsubtest_passed = true;
|
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;
|
pubsubtest_res = PX4_ERROR;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user