aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_message.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-20 18:27:05 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-21 14:27:01 +0100
commitcadcad6ffbdfbe9b92a5936f4d894138f912b4ff (patch)
tree3c42f405c89052f8f807bc645b20ce330a3b0591 /src/platforms/px4_message.h
parent7c3223b8609ee418b520d19cae7e52d2a7a85e99 (diff)
downloadpx4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.tar.gz
px4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.tar.bz2
px4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.zip
messagelayer prototype for nuttx
Diffstat (limited to 'src/platforms/px4_message.h')
-rw-r--r--src/platforms/px4_message.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platforms/px4_message.h b/src/platforms/px4_message.h
index 05fcf1140..c908f6fc6 100644
--- a/src/platforms/px4_message.h
+++ b/src/platforms/px4_message.h
@@ -49,7 +49,7 @@ namespace px4
{
template <typename M>
-class PX4Message
+class __EXPORT PX4Message
{
// friend class NodeHandle;
// #if defined(__PX4_ROS)
@@ -69,6 +69,7 @@ public:
virtual ~PX4Message() {};
virtual M& data() {return _data;}
+ virtual const M& data() const {return _data;}
virtual PX4TopicHandle handle() = 0;
private:
M _data;