mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: added --postype-single option
for SITL with single precision postype_t
This commit is contained in:
parent
4895a08ab2
commit
895ab6c089
@ -330,6 +330,9 @@ class Board:
|
|||||||
if cfg.options.disable_ekf3:
|
if cfg.options.disable_ekf3:
|
||||||
env.CXXFLAGS += ['-DHAL_NAVEKF3_AVAILABLE=0']
|
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:
|
if cfg.options.osd or cfg.options.osd_fonts:
|
||||||
env.CXXFLAGS += ['-DOSD_ENABLED=1', '-DHAL_MSP_ENABLED=1']
|
env.CXXFLAGS += ['-DOSD_ENABLED=1', '-DHAL_MSP_ENABLED=1']
|
||||||
|
|
||||||
|
5
wscript
5
wscript
@ -257,6 +257,11 @@ configuration in order to save typing.
|
|||||||
default=False,
|
default=False,
|
||||||
help='Force a static build')
|
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):
|
def _collect_autoconfig_files(cfg):
|
||||||
for m in sys.modules.values():
|
for m in sys.modules.values():
|
||||||
paths = []
|
paths = []
|
||||||
|
Loading…
Reference in New Issue
Block a user