Skip to content

Commit

Permalink
Tools: Optionally include AP_SIM_GLIDER_ENABLED on SIH
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Jul 22, 2024
1 parent 571bbfe commit 9bfb0f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/scripts/sitl-on-hardware/sitl-on-hw.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def sohw_path(fname):
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)
Expand Down

0 comments on commit 9bfb0f4

Please sign in to comment.