mirror of https://github.com/ArduPilot/ardupilot
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:
|
||||
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']
|
||||
|
||||
|
|
5
wscript
5
wscript
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue