waf: added --postype-single option

for SITL with single precision postype_t
This commit is contained in:
Andrew Tridgell 2021-06-22 15:57:34 +10:00
parent 4895a08ab2
commit 895ab6c089
2 changed files with 8 additions and 0 deletions

View File

@ -330,6 +330,9 @@ class Board:
if cfg.options.disable_ekf3:
env.CXXFLAGS += ['-DHAL_NAVEKF3_AVAILABLE=0']
if cfg.options.postype_single:
env.CXXFLAGS += ['-DHAL_WITH_POSTYPE_DOUBLE=0']
if cfg.options.osd or cfg.options.osd_fonts:
env.CXXFLAGS += ['-DOSD_ENABLED=1', '-DHAL_MSP_ENABLED=1']

View File

@ -257,6 +257,11 @@ configuration in order to save typing.
default=False,
help='Force a static build')
g.add_option('--postype-single',
action='store_true',
default=False,
help='force single precision postype_t')
def _collect_autoconfig_files(cfg):
for m in sys.modules.values():
paths = []