Tools: Optionally include AP_SIM_GLIDER_ENABLED on SIH

This commit is contained in:
George Zogopoulos 2024-07-18 11:53:13 +02:00 committed by Andrew Tridgell
parent e170710de9
commit cb044d4718
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ if args.defaults:
defaults_write(open(args.defaults,"r").read() + "\n")
if args.simclass:
if args.simclass == 'Glider':
hwdef_write("define AP_SIM_GLIDER_ENABLED 1\n")
hwdef_write("define AP_SIM_FRAME_CLASS %s\n" % args.simclass)
if args.frame:
hwdef_write('define AP_SIM_FRAME_STRING "%s"\n' % args.frame)