From 68360571d1f93cfc1d10dc2a808eaedac44b7c9d Mon Sep 17 00:00:00 2001 From: Joshua Henderson Date: Thu, 23 Jun 2022 14:24:00 -0400 Subject: [PATCH] Tools: ardupilotwaf add OpenDroneID lib --- Tools/ardupilotwaf/ardupilotwaf.py | 1 + Tools/ardupilotwaf/boards.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index d9b3c3d992..1db0f43f9f 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -110,6 +110,7 @@ COMMON_VEHICLE_DEPENDENT_LIBRARIES = [ 'AP_Torqeedo', 'AP_CustomRotations', 'AP_AIS', + 'AP_OpenDroneID', ] def get_legacy_defines(sketch_name, bld): diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 5a20f3ce9d..33133ee3af 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -555,6 +555,9 @@ class sitl(Board): cfg.define('HAL_WITH_SPI', 1) cfg.define('HAL_WITH_RAMTRON', 1) cfg.define('AP_GENERATOR_RICHENPOWER_ENABLED', 1) + if Utils.unversioned_sys_platform() != 'cygwin' and sys.platform != 'darwin': + # enable OpenDroneID, but not on cygwin or macos due to compiler version used + cfg.define('AP_OPENDRONEID_ENABLED', 1) if self.with_can: cfg.define('HAL_NUM_CAN_IFACES', 2)