From 19ea06dbf22c473702999848f5ae5a45efefdf49 Mon Sep 17 00:00:00 2001 From: George Zogopoulos Date: Thu, 18 Jul 2024 11:53:13 +0200 Subject: [PATCH] Tools: Optionally include AP_SIM_GLIDER_ENABLED on SIH --- Tools/scripts/sitl-on-hardware/sitl-on-hw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/scripts/sitl-on-hardware/sitl-on-hw.py b/Tools/scripts/sitl-on-hardware/sitl-on-hw.py index 291005a7a73739..16707043a929d1 100755 --- a/Tools/scripts/sitl-on-hardware/sitl-on-hw.py +++ b/Tools/scripts/sitl-on-hardware/sitl-on-hw.py @@ -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)