diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-03 17:04:15 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-03 17:04:15 +0100 |
commit | c2e2b3d52fa7bcfbbec110b5555d2c437657f118 (patch) | |
tree | aa62454fb29b9539fce66e27c12e0ba283f0db37 /src/examples/subscriber/subscriber.cpp | |
parent | 924350a5de1a609e470618ef78212bf7b0044c33 (diff) | |
download | px4-firmware-c2e2b3d52fa7bcfbbec110b5555d2c437657f118.tar.gz px4-firmware-c2e2b3d52fa7bcfbbec110b5555d2c437657f118.tar.bz2 px4-firmware-c2e2b3d52fa7bcfbbec110b5555d2c437657f118.zip |
make param wrapper macros compatible for px4 and ros, needs cleanup
Diffstat (limited to 'src/examples/subscriber/subscriber.cpp')
-rw-r--r-- | src/examples/subscriber/subscriber.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/subscriber/subscriber.cpp b/src/examples/subscriber/subscriber.cpp index cc9b7a794..68003b6df 100644 --- a/src/examples/subscriber/subscriber.cpp +++ b/src/examples/subscriber/subscriber.cpp @@ -26,6 +26,7 @@ */ #include <px4.h> +#include "subscriber_params.h" using namespace px4; @@ -75,8 +76,8 @@ PX4_MAIN_FUNCTION(subscriber) { px4::NodeHandle n; /* Define parameters */ - px4_param_t p_sub_interv = PX4_PARAM_INIT("SUB_INTERV", 100); - px4_param_t p_test_float = PX4_PARAM_INIT("SUB_TESTF", 3.14f); + px4_param_t p_sub_interv = PX4_PARAM_INIT(SUB_INTERV); + px4_param_t p_test_float = PX4_PARAM_INIT(SUB_TESTF); /* Read the parameter back for testing */ int32_t sub_interval; |