aboutsummaryrefslogtreecommitdiff
path: root/src/examples/publisher/publisher_example.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-22 09:30:43 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-22 09:30:43 +0100
commit8c4fce3654bbf4cb31314f1fb596f4fd17772589 (patch)
treebaf3d096173055675b1fbc7362e0756eec69918c /src/examples/publisher/publisher_example.h
parent2af44f5995dd121a7ce2aefd3ab1c7d8dcf3fb8d (diff)
downloadpx4-firmware-8c4fce3654bbf4cb31314f1fb596f4fd17772589.tar.gz
px4-firmware-8c4fce3654bbf4cb31314f1fb596f4fd17772589.tar.bz2
px4-firmware-8c4fce3654bbf4cb31314f1fb596f4fd17772589.zip
multiplatform: better publisher base class
Diffstat (limited to 'src/examples/publisher/publisher_example.h')
-rw-r--r--src/examples/publisher/publisher_example.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/publisher/publisher_example.h b/src/examples/publisher/publisher_example.h
index 304ecef47..4ff59a226 100644
--- a/src/examples/publisher/publisher_example.h
+++ b/src/examples/publisher/publisher_example.h
@@ -37,6 +37,7 @@
*
* @author Thomas Gubler <thomasgubler@gmail.com>
*/
+#pragma once
#include <px4.h>
class PublisherExample {
@@ -48,5 +49,5 @@ public:
int main();
protected:
px4::NodeHandle _n;
- px4::Publisher * _rc_channels_pub;
+ px4::Publisher<px4::px4_rc_channels> * _rc_channels_pub;
};