multiplatform: better publisher base class

This commit is contained in:
Thomas Gubler
2015-01-22 09:30:43 +01:00
parent 2af44f5995
commit 8c4fce3654
4 changed files with 59 additions and 42 deletions
+2 -1
View File
@@ -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;
};