diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 23:14:50 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-11-28 23:14:50 +0100 |
commit | 6b695ac9e8be9e7fe480238c967316366cba444c (patch) | |
tree | 892d55cd422bc24be22834ef506eff747cfe2a2f /src/examples | |
parent | caa61a4fdc7898987da7a03e1924ced8962bb92c (diff) | |
download | px4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.tar.gz px4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.tar.bz2 px4-firmware-6b695ac9e8be9e7fe480238c967316366cba444c.zip |
add PX4 advertise macro
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/publisher/publisher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/publisher/publisher.cpp b/src/examples/publisher/publisher.cpp index 5c7156c08..8ef147493 100644 --- a/src/examples/publisher/publisher.cpp +++ b/src/examples/publisher/publisher.cpp @@ -62,7 +62,7 @@ PX4_MAIN_FUNCTION(publisher) * than we can send them, the number here specifies how many messages to * buffer up before throwing some away. */ - px4::Publisher * rc_channels_pub = n.advertise<PX4_TOPIC_T(rc_channels)>(PX4_TOPIC(rc_channels)); + px4::Publisher * rc_channels_pub = PX4_ADVERTISE(n, rc_channels); px4::Rate loop_rate(10); |