diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-22 16:47:28 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-22 16:47:28 +0100 |
commit | 49d41773fc990a6b878543fac2c5cda328bf7d78 (patch) | |
tree | c569a891afdaba69c6ba0975bd377134acbb984c /src/platforms/px4_subscriber.h | |
parent | 8c4fce3654bbf4cb31314f1fb596f4fd17772589 (diff) | |
download | px4-firmware-49d41773fc990a6b878543fac2c5cda328bf7d78.tar.gz px4-firmware-49d41773fc990a6b878543fac2c5cda328bf7d78.tar.bz2 px4-firmware-49d41773fc990a6b878543fac2c5cda328bf7d78.zip |
ros wrapper port callback to methods and subscriber without callback
Diffstat (limited to 'src/platforms/px4_subscriber.h')
-rw-r--r-- | src/platforms/px4_subscriber.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h index d03b3edee..c499712a9 100644 --- a/src/platforms/px4_subscriber.h +++ b/src/platforms/px4_subscriber.h @@ -130,11 +130,10 @@ protected: void callback(const typename std::remove_reference<decltype(((T*)nullptr)->data())>::type &msg) { /* Store data */ - this->_msg_current = (T)msg; + this->_msg_current.data() = msg; /* Call callback */ if (_cbf != NULL) { - // _cbf(_msg_current); _cbf(this->get()); } |