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