logger + uorb msg template: rm msg name from o_fields to save space

Instead we use o_name to get the topic name. Now the topic names are not
upper case anymore in the log format. This makes it more consistent, eg.
if used as a nested topic
This commit is contained in:
Beat Küng
2016-05-18 09:46:10 +02:00
committed by Lorenz Meier
parent 4f8d16cc4d
commit 623fe7ca2c
2 changed files with 6 additions and 8 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ topic_fields = ["uint64_t timestamp"]+["%s %s" % (convert_type(field.type), fiel
@# join all msg files in one line e.g: "float[3] position;float[3] velocity;bool armed"
const char *__orb_@(topic_name)_fields = "@( topic_name.upper() ):@( ";".join(topic_fields) );";
@# This is used for the logger
const char *__orb_@(topic_name)_fields = "@( ";".join(topic_fields) );";
@[for multi_topic in topics]@
ORB_DEFINE(@multi_topic, struct @uorb_struct, @(struct_size-padding_end_size),