waf: keep EKF2 enabled in SITL

just because we don't compile this in doesn't mean we shouldn't continue to test it
This commit is contained in:
Peter Barker 2023-11-18 13:58:37 +11:00 committed by Peter Barker
parent aa9bbd0fcb
commit 5f1f3e5519
1 changed files with 6 additions and 0 deletions

View File

@ -654,6 +654,12 @@ class sitl(Board):
cfg.define('AP_NOTIFY_LP5562_BUS', 2)
cfg.define('AP_NOTIFY_LP5562_ADDR', 0x30)
try:
env.CXXFLAGS.remove('-DHAL_NAVEKF2_AVAILABLE=0')
except ValueError:
pass
env.CXXFLAGS += ['-DHAL_NAVEKF2_AVAILABLE=1']
if self.with_can:
cfg.define('HAL_NUM_CAN_IFACES', 2)
env.DEFINES.update(CANARD_MULTI_IFACE=1,