mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
uorb templates: remove redundant timestamp field
This commit is contained in:
@@ -81,9 +81,8 @@ ORB_DEFINE(@multi_topic, struct @uorb_struct, @(struct_size-padding_end_size), _
|
||||
void print_message(const @uorb_struct& message)
|
||||
{
|
||||
PX4_INFO_RAW(" @(uorb_struct)\n");
|
||||
PX4_INFO_RAW("\ttimestamp: %" PRIu64, message.timestamp);
|
||||
if (message.timestamp != 0) {
|
||||
PX4_INFO_RAW(" (%.6f seconds ago)\n", hrt_elapsed_time(&message.timestamp) / 1e6);
|
||||
PX4_INFO_RAW("\t(%.6f seconds ago)\n", hrt_elapsed_time(&message.timestamp) / 1e6);
|
||||
} else {
|
||||
PX4_INFO_RAW("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user