From 5cf8081a980dc95495ea91a2d0b0f57fa114b0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 17 May 2016 09:26:44 +0200 Subject: [PATCH] uorb template: add timestamp to the format string We explicitly include the timestamp. This makes it possible to change it's type later on. This breaks the current ULog logging format. --- msg/templates/uorb/msg.cpp.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg/templates/uorb/msg.cpp.template b/msg/templates/uorb/msg.cpp.template index 9244846c7f..abbf20f51a 100644 --- a/msg/templates/uorb/msg.cpp.template +++ b/msg/templates/uorb/msg.cpp.template @@ -61,7 +61,7 @@ topic_name = spec.short_name sorted_fields = sorted(spec.parsed_fields(), key=sizeof_field_type, reverse=True) struct_size, padding_end_size = add_padding_bytes(sorted_fields, search_path) -topic_fields = ["%s %s" % (convert_type(field.type), field.name) for field in sorted_fields] +topic_fields = ["uint64_t timestamp"]+["%s %s" % (convert_type(field.type), field.name) for field in sorted_fields] }@ #include