mirror of https://github.com/ArduPilot/ardupilot
waf: added --ekf-double configure option
This commit is contained in:
parent
b8e934ccf1
commit
5f45098044
|
@ -360,6 +360,12 @@ class Board:
|
||||||
if fnmatch.fnmatch(f, "font*bin"):
|
if fnmatch.fnmatch(f, "font*bin"):
|
||||||
env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)]
|
env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)]
|
||||||
|
|
||||||
|
if cfg.options.ekf_double:
|
||||||
|
env.CXXFLAGS += ['-DHAL_EKF_DOUBLE=1']
|
||||||
|
|
||||||
|
if cfg.options.ekf_single:
|
||||||
|
env.CXXFLAGS += ['-DHAL_EKF_DOUBLE=0']
|
||||||
|
|
||||||
def pre_build(self, bld):
|
def pre_build(self, bld):
|
||||||
'''pre-build hook that gets called before dynamic sources'''
|
'''pre-build hook that gets called before dynamic sources'''
|
||||||
if bld.env.ROMFS_FILES:
|
if bld.env.ROMFS_FILES:
|
||||||
|
|
10
wscript
10
wscript
|
@ -256,6 +256,16 @@ configuration in order to save typing.
|
||||||
default=False,
|
default=False,
|
||||||
help='Configure without EKF3.')
|
help='Configure without EKF3.')
|
||||||
|
|
||||||
|
g.add_option('--ekf-double',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Configure EKF as double precision.')
|
||||||
|
|
||||||
|
g.add_option('--ekf-single',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Configure EKF as single precision.')
|
||||||
|
|
||||||
g.add_option('--static',
|
g.add_option('--static',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
|
Loading…
Reference in New Issue