mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 11:37:35 +08:00
uORB print_message cleanup
- indent field print with tabs instead of spaces - print a newline before printing a nested field - cmake add generator dependencies
This commit is contained in:
@@ -205,7 +205,7 @@ def print_field(field):
|
||||
|
||||
else:
|
||||
for i in range(array_length):
|
||||
print("printf(\" " + field.type + " " + field.name + "[" + str(i) + "]\");")
|
||||
print("printf(\"\\t" + field.type + " " + field.name + "[" + str(i) + "]\");")
|
||||
print(" print_message(message." + field.name + "[" + str(i) + "]);")
|
||||
return
|
||||
|
||||
@@ -236,11 +236,11 @@ def print_field(field):
|
||||
field_name = "(double)" + field_name
|
||||
|
||||
else:
|
||||
print("printf(\" " + field.name + "\");")
|
||||
print("printf(\"\\n\\t" + field.name + "\");")
|
||||
print("\tprint_message(message."+ field.name + ");")
|
||||
return
|
||||
|
||||
print("printf(\"\t" + field.name + ": " + c_type + "\\n\", " + field_name + ");" )
|
||||
print("printf(\"\\t" + field.name + ": " + c_type + "\\n\", " + field_name + ");" )
|
||||
|
||||
|
||||
def print_field_def(field):
|
||||
|
||||
Reference in New Issue
Block a user