mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 09:08:52 +08:00
Fix stack settings of EKF2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user