Add firmware type to .px4

This commit is contained in:
Don Gagne 2016-03-04 19:58:12 -08:00 committed by Lorenz Meier
parent d832e325c1
commit 29af484685
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ if args.parameter_xml != None:
bytes = f.read()
desc['parameter_xml_size'] = len(bytes)
desc['parameter_xml'] = base64.b64encode(zlib.compress(bytes,9)).decode('utf-8')
desc['mav_autopilot'] = 12 # 12 = MAV_AUTOPILOT_PX4
if args.airframe_xml != None:
f = open(args.airframe_xml, "rb")
bytes = f.read()