mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:21:36 +08:00
uorb autogeneration
This commit is contained in:
committed by
Lorenz Meier
parent
3aa2297497
commit
76387b1693
@@ -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]
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user