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

Loading…
Cancel
Save