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.
This commit is contained in:
Beat Küng 2016-05-17 09:26:44 +02:00 committed by Lorenz Meier
parent 3f6f030fc4
commit 5cf8081a98
1 changed files with 1 additions and 1 deletions

View File

@ -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 <px4_config.h>