-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue with persistent parameters for sitl mode (#89)
- Loading branch information
1 parent
deb4a14
commit f9d1487
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Copyright (C) 2023-2024 Dmitry Ponomarev <[email protected]> | ||
# Distributed under the terms of the GPL v3 license, available in the file LICENSE. | ||
|
||
# Generate temp parameters for SITL | ||
include(${CMAKE_DIR}/libparams_generate_default_params.cmake) | ||
|
||
set(EXECUTABLE ${PROJECT_NAME}.out) | ||
add_executable(${EXECUTABLE} | ||
${APPLICATION_SOURCES} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (C) 2023-2024 Dmitry Ponomarev <[email protected]> | ||
# Distributed under the terms of the GPL v3 license, available in the file LICENSE. | ||
|
||
execute_process( | ||
COMMAND ${LIBPARAMS_PATH}/scripts/generate_default_params.py | ||
--out-dir ${BUILD_SRC_DIR} | ||
-f ${BUILD_SRC_DIR}/params.cpp | ||
--out-file-name default_params | ||
RESULT_VARIABLE ret | ||
) | ||
if(NOT ret EQUAL 0) | ||
message( FATAL_ERROR "Default Params Generator has been failed. Abort.") | ||
endif() |