Browse Source

publisher: use wrapper message type

sbg
Thomas Gubler 10 years ago
parent
commit
02fdd48a47
  1. 6
      src/platforms/px4_publisher.h

6
src/platforms/px4_publisher.h

@ -126,10 +126,10 @@ public:
/** Publishes msg /** Publishes msg
* @param msg the message which is published to the topic * @param msg the message which is published to the topic
*/ */
template<typename M> template<typename T>
int publish(const M &msg) int publish(const T &msg)
{ {
_uorb_pub->update((void *)&msg); _uorb_pub->update((void *)&(msg.data()));
return 0; return 0;
} }

Loading…
Cancel
Save