mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 19:37:34 +08:00
Added param shared memory support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Julian Oes
parent
ac0d35d28e
commit
a1a615b907
@@ -3,7 +3,7 @@ include(posix/px4_impl_posix)
|
||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon/qurt_app.cmake)
|
||||
|
||||
#set(CONFIG_SHMEM "1")
|
||||
set(CONFIG_SHMEM "1")
|
||||
|
||||
set(config_module_list
|
||||
drivers/device
|
||||
|
||||
@@ -10,6 +10,8 @@ include(qurt/px4_impl_qurt)
|
||||
|
||||
#include_directories(${HEXAGON_DRIVERS_ROOT}/inc)
|
||||
|
||||
set(CONFIG_SHMEM "1")
|
||||
|
||||
# For Actual flight we need to link against the driver dynamic libraries
|
||||
#set(target_libraries
|
||||
# -L${HEXAGON_DRIVERS_ROOT}/libs
|
||||
|
||||
@@ -448,7 +448,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found)
|
||||
param_value_unsaved(param) ? '*' : (param_value_is_default(param) ? ' ' : '+'),
|
||||
param_name(param));
|
||||
printf("curr: %ld", (long)i);
|
||||
param_set_no_autosave(param, &newval);
|
||||
//param_set_no_autosave(param, &newval);
|
||||
printf(" -> new: %ld\n", (long)newval);
|
||||
}
|
||||
}
|
||||
@@ -470,7 +470,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found)
|
||||
param_value_unsaved(param) ? '*' : (param_value_is_default(param) ? ' ' : '+'),
|
||||
param_name(param));
|
||||
printf("curr: %4.4f", (double)f);
|
||||
param_set_no_autosave(param, &newval);
|
||||
//param_set_no_autosave(param, &newval);
|
||||
printf(" -> new: %4.4f\n", (double)newval);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user