uorb autogeneration

This commit is contained in:
Daniel Agar
2016-05-14 11:27:07 +02:00
committed by Lorenz Meier
parent 3aa2297497
commit 76387b1693
113 changed files with 897 additions and 593 deletions
+7 -2
View File
@@ -55,7 +55,6 @@
import genmsg.msgs
import gencpp
cpp_class = 'px4_%s'%spec.short_name
native_type = '%s_s'%spec.short_name
topic_name = spec.short_name
}@
@@ -74,6 +73,11 @@ topic_name = spec.short_name
namespace px4
{
@[for multi_topic in topics]@
@{
cpp_class = 'px4_%s'%multi_topic
}@
class __EXPORT @(cpp_class) :
public PX4Message<@(native_type)>
@@ -89,7 +93,8 @@ public:
~@(cpp_class)() {}
static PX4TopicHandle handle() {return ORB_ID(@(topic_name));}
static PX4TopicHandle handle() {return ORB_ID(@(multi_topic));}
};
@[end for]
};