diff --git a/src/modules/ekf2/CMakeLists.txt b/src/modules/ekf2/CMakeLists.txt index 82d13d5fe3..37e4f78d0b 100644 --- a/src/modules/ekf2/CMakeLists.txt +++ b/src/modules/ekf2/CMakeLists.txt @@ -32,13 +32,13 @@ ############################################################################# set(MODULE_CFLAGS) if (${OS} STREQUAL "nuttx") - list(APPEND MODULE_CFLAGS -Wframe-larger-than=60000) + list(APPEND MODULE_CFLAGS -Wframe-larger-than=4000) endif() px4_add_module( MODULE modules__ekf2 MAIN ekf2 COMPILE_FLAGS ${MODULE_CFLAGS} - STACK 60000 + STACK 1000 SRCS ekf2_main.cpp DEPENDS diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 3c61d231dd..7b02c1dadf 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -318,7 +318,7 @@ int Ekf2::start() _control_task = px4_task_spawn_cmd("ekf2", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, - 30000, + 9000, (px4_main_t)&Ekf2::task_main_trampoline, nullptr); @@ -374,7 +374,7 @@ int ekf2_main(int argc, char *argv[]) if (!strcmp(argv[1], "print")) { if (ekf2::instance != nullptr) { - ekf2::instance->print(); + return 0; }