Browse Source

Fix stack settings of EKF2

sbg
Lorenz Meier 9 years ago committed by Roman
parent
commit
2d50002973
  1. 4
      src/modules/ekf2/CMakeLists.txt
  2. 4
      src/modules/ekf2/ekf2_main.cpp

4
src/modules/ekf2/CMakeLists.txt

@ -32,13 +32,13 @@ @@ -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

4
src/modules/ekf2/ekf2_main.cpp

@ -318,7 +318,7 @@ int Ekf2::start() @@ -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[]) @@ -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;
}

Loading…
Cancel
Save