aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-21 18:14:20 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-21 18:14:42 +0100
commita761df4ffa0e77e1bd34a6e02ba621ca71523389 (patch)
tree6ab1c690a493596264af81ba18b54dae80f9af12
parentf60e65b38fd051595b465f619a19effa9c13efee (diff)
downloadpx4-firmware-a761df4ffa0e77e1bd34a6e02ba621ca71523389.tar.gz
px4-firmware-a761df4ffa0e77e1bd34a6e02ba621ca71523389.tar.bz2
px4-firmware-a761df4ffa0e77e1bd34a6e02ba621ca71523389.zip
clean up px4_publisher
-rw-r--r--src/platforms/px4_publisher.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h
index 0c8dd62ba..911554503 100644
--- a/src/platforms/px4_publisher.h
+++ b/src/platforms/px4_publisher.h
@@ -59,20 +59,11 @@ class __EXPORT PublisherBase
public:
PublisherBase() {};
~PublisherBase() {};
-
- /** Publishes msg
- * @param msg the message which is published to the topic
- */
- // virtual int publish2(const PX4Message * const msg) = 0;
-
};
#if defined(__PX4_ROS)
-// template <typename T>
class Publisher :
public PublisherBase
- // public PublisherBase,
- // public T
{
public:
/**
@@ -81,7 +72,6 @@ public:
*/
Publisher(ros::Publisher ros_pub) :
PublisherBase(),
- // T(),
_ros_pub(ros_pub)
{}
@@ -90,7 +80,6 @@ public:
/** Publishes msg
* @param msg the message which is published to the topic
*/
- // int publish(const M &msg) { _ros_pub.publish(msg); return 0; }
template <typename T>
int publish(T &msg) {
_ros_pub.publish(msg.data());
@@ -100,7 +89,6 @@ private:
};
#else
class __EXPORT Publisher :
- // public uORB::PublicationNode,
public PublisherBase,
public ListNode<Publisher *>
@@ -108,14 +96,7 @@ class __EXPORT Publisher :
public:
/**
* Construct Publisher by providing orb meta data
- * @param meta orb metadata for the topic which is used
- * @param list publisher is added to this list
*/
- // Publisher(const struct orb_metadata *meta,
- // List<uORB::PublicationNode *> *list) :
- // uORB::PublicationNode(meta, list),
- // PublisherBase()
- // {}
Publisher(uORB::PublicationBase * uorb_pub) :
PublisherBase(),
_uorb_pub(uorb_pub)