mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
generate uorb topic helper rename px4_printf to print_field
This commit is contained in:
@@ -83,6 +83,6 @@ void print_message(const @uorb_struct& message)
|
|||||||
printf(" @(uorb_struct)\n");
|
printf(" @(uorb_struct)\n");
|
||||||
printf("\ttimestamp: %" PRIu64 " (%.6f seconds ago)\n", message.timestamp, hrt_elapsed_time(&message.timestamp) / 1e6);
|
printf("\ttimestamp: %" PRIu64 " (%.6f seconds ago)\n", message.timestamp, hrt_elapsed_time(&message.timestamp) / 1e6);
|
||||||
@[for field in sorted_fields]@
|
@[for field in sorted_fields]@
|
||||||
@( px4_printf(field) )
|
@( print_field(field) )
|
||||||
@[end for]
|
@[end for]
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ def convert_type(spec_type):
|
|||||||
return c_type
|
return c_type
|
||||||
|
|
||||||
|
|
||||||
def px4_printf(field):
|
def print_field(field):
|
||||||
"""
|
"""
|
||||||
Echo printf line
|
Echo printf line
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user