aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_defines.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-11-28 23:14:50 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-11-28 23:14:50 +0100
commit6b695ac9e8be9e7fe480238c967316366cba444c (patch)
tree892d55cd422bc24be22834ef506eff747cfe2a2f /src/platforms/px4_defines.h
parentcaa61a4fdc7898987da7a03e1924ced8962bb92c (diff)
downloadpx4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.tar.gz
px4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.tar.bz2
px4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.zip
add PX4 advertise macro
Diffstat (limited to 'src/platforms/px4_defines.h')
-rw-r--r--src/platforms/px4_defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platforms/px4_defines.h b/src/platforms/px4_defines.h
index f6679d01b..84e5c8da0 100644
--- a/src/platforms/px4_defines.h
+++ b/src/platforms/px4_defines.h
@@ -69,3 +69,4 @@
/* Overload the PX4_SUBSCRIBE macro to suppport methods and pure functions as callback */
#define PX4_GET_SUBSCRIBE(_1, _2, _3, _4, _5, NAME, ...) NAME
#define PX4_SUBSCRIBE(...) PX4_GET_SUBSCRIBE(__VA_ARGS__, PX4_SUBSCRIBE_CBMETH, PX4_SUBSCRIBE_CBFUNC)(__VA_ARGS__)
+#define PX4_ADVERTISE(_nodehandle, _name) _nodehandle.advertise<PX4_TOPIC_T(_name)>(PX4_TOPIC(_name))