Tools: added --postype-single for sim_vehicle.py

This commit is contained in:
Andrew Tridgell 2021-06-22 15:57:48 +10:00
parent 895ab6c089
commit 3204ce4bf1
1 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,9 @@ def do_build(opts, frame_options):
if opts.disable_ekf3:
cmd_configure.append("--disable-ekf3")
if opts.postype_single:
cmd_configure.append("--postype-single")
pieces = [shlex.split(x) for x in opts.waf_configure_args]
for piece in pieces:
cmd_configure.extend(piece)
@ -1049,6 +1052,9 @@ group_sim.add_option("", "--sysid",
type='int',
default=None,
help="Set SYSID_THISMAV")
group_sim.add_option("--postype-single",
action='store_true',
help="force single precision postype_t")
parser.add_option_group(group_sim)