mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Mixers: write to stdout if no output file is provided
This commit is contained in:
parent
679f33b406
commit
142cd7ee75
@ -353,8 +353,11 @@ if __name__ == '__main__':
|
||||
header = generate_mixer_multirotor_header(geom_list,
|
||||
use_normalized_mix=args.normalize,
|
||||
use_6dof=args.sixdof)
|
||||
# print(header)
|
||||
|
||||
# Write header file
|
||||
with open(args.outputfile, 'w') as fd:
|
||||
fd.write(header)
|
||||
if args.outputfile is not None:
|
||||
# Write header file
|
||||
with open(args.outputfile, 'w') as fd:
|
||||
fd.write(header)
|
||||
else:
|
||||
# Print to standard output
|
||||
print(header)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user