mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 03:41:35 +08:00
param_test link libmsg_gen
This commit is contained in:
committed by
Lorenz Meier
parent
cf667dedb8
commit
9c32792017
@@ -235,7 +235,9 @@ param_find_changed(param_t param)
|
|||||||
static void
|
static void
|
||||||
param_notify_changes(bool is_saved)
|
param_notify_changes(bool is_saved)
|
||||||
{
|
{
|
||||||
struct parameter_update_s pup = { .timestamp = hrt_absolute_time(), .saved = is_saved};
|
struct parameter_update_s pup;
|
||||||
|
pup.timestamp = hrt_absolute_time();
|
||||||
|
pup.saved = is_saved;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we don't have a handle to our topic, create one now; otherwise
|
* If we don't have a handle to our topic, create one now; otherwise
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ add_gtest(sf0x_test)
|
|||||||
add_executable(param_test param_test.cpp uorb_stub.cpp
|
add_executable(param_test param_test.cpp uorb_stub.cpp
|
||||||
${PX4_SRC}/modules/systemlib/bson/tinybson.c
|
${PX4_SRC}/modules/systemlib/bson/tinybson.c
|
||||||
${PX4_SRC}/modules/systemlib/param/param.c)
|
${PX4_SRC}/modules/systemlib/param/param.c)
|
||||||
|
target_link_libraries(param_test ${PX4_SITL_BUILD}/libmsg_gen.a)
|
||||||
add_gtest(param_test)
|
add_gtest(param_test)
|
||||||
|
|
||||||
# param_shmem_test
|
# param_shmem_test
|
||||||
|
|||||||
Reference in New Issue
Block a user