From 3a604ecfdf26fcdf75a77a0b3eec35ef44dc6bbb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Jan 2023 00:00:16 +1100 Subject: [PATCH] AP_HAL_ChibiOS: add and use AP_VIDEOTX_ENABLED --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index f86c477541..9028d6f601 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -3030,6 +3030,10 @@ def add_iomcu_firmware_defaults(f): #ifndef AP_INERTIALSENSOR_ENABLED #define AP_INERTIALSENSOR_ENABLED 0 #endif + +#ifndef AP_VIDEOTX_ENABLED +#define AP_VIDEOTX_ENABLED 0 +#endif ''') def add_normal_firmware_defaults(f): diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat index e569440a49..6a180b6aac 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat @@ -149,4 +149,7 @@ define AP_INERTIALSENSOR_BATCHSAMPLER_ENABLED 0 define EK3_FEATURE_EXTERNAL_NAV 0 define EK3_FEATURE_BODY_ODOM 0 +// video on SkyViper is via the Sonix +define AP_VIDEOTX_ENABLED 0 + AUTOBUILD_TARGETS Copter