mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:23:34 +08:00
uorb tests: run at max priority & increase stack size
- running at max priority significantly decreases jitter for the latency test, providing more consistent results - stack size increase is required for the latency test
This commit is contained in:
@@ -44,6 +44,7 @@ px4_add_module(
|
||||
MODULE modules__uORB__uORB_tests
|
||||
MAIN uorb_tests
|
||||
STACK_MAIN 2048
|
||||
PRIORITY "SCHED_PRIORITY_MAX"
|
||||
COMPILE_FLAGS
|
||||
SRCS ${SRCS}
|
||||
DEPENDS
|
||||
|
||||
@@ -146,8 +146,8 @@ int uORBTest::UnitTest::latency_test(orb_id_t T, bool print)
|
||||
// prevent access if the caller data goes out of scope
|
||||
int pubsub_task = px4_task_spawn_cmd("uorb_latency",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_MAX - 5,
|
||||
1500,
|
||||
SCHED_PRIORITY_MAX,
|
||||
1700,
|
||||
(px4_main_t)&uORBTest::UnitTest::pubsubtest_threadEntry,
|
||||
args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user