aboutsummaryrefslogtreecommitdiff
path: root/src/examples/publisher/publisher_example.h
diff options
context:
space:
mode:
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;
};