mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 00:53:34 +08:00
Modified cmake to use STACK_MAX and STACK_MAIN
This commit is contained in:
@@ -30,21 +30,12 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
if(${OS} STREQUAL "nuttx")
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=10000)
|
||||
elseif(${OS} STREQUAL "posix")
|
||||
list(APPEND MODULE_CFLAGS -Wno-error)
|
||||
endif()
|
||||
|
||||
# use custom matrix lib instead of Eigen
|
||||
add_definitions(-DUSE_MATRIX_LIB)
|
||||
|
||||
|
||||
px4_add_module(
|
||||
MODULE modules__local_position_estimator
|
||||
MAIN local_position_estimator
|
||||
STACK 9216
|
||||
COMPILE_FLAGS ${MODULE_CFLAGS}
|
||||
COMPILE_FLAGS -Os
|
||||
STACK_MAIN 5700
|
||||
STACK_MAX 10000
|
||||
SRCS
|
||||
local_position_estimator_main.cpp
|
||||
BlockLocalPositionEstimator.cpp
|
||||
|
||||
Reference in New Issue
Block a user