From 22b948b2b4d95c9b8ce447eaeb59b71169b4e6dd Mon Sep 17 00:00:00 2001 From: 3djc Date: Mon, 6 Oct 2025 10:29:40 +0200 Subject: [PATCH] fix(cpn): support IMU for TX15 (#6627) --- companion/src/firmwares/boardjson.cpp | 2 +- companion/src/firmwares/boards.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/boardjson.cpp b/companion/src/firmwares/boardjson.cpp index d448fa2ab..65d8539fb 100644 --- a/companion/src/firmwares/boardjson.cpp +++ b/companion/src/firmwares/boardjson.cpp @@ -89,7 +89,7 @@ void BoardJson::afterLoadFixups(Board::Type board, InputsTable * inputs, Switche { // TODO json files do not contain gyro defs // Radio cmake directive IMU is currently used - if (IS_TARANIS_XLITES(board) || IS_FAMILY_HORUS_OR_T16(board)) { + if (IS_TARANIS_XLITES(board) || IS_FAMILY_HORUS_OR_T16(board) || IS_RADIOMASTER_TX15(board)) { if (getInputIndex(inputs, "TILT_X", Board::LVT_TAG) < 0) { InputDefn defn; defn.type = AIT_FLEX; diff --git a/companion/src/firmwares/boards.cpp b/companion/src/firmwares/boards.cpp index 309ec87e2..f0d8bbea4 100644 --- a/companion/src/firmwares/boards.cpp +++ b/companion/src/firmwares/boards.cpp @@ -346,7 +346,7 @@ int Boards::getCapability(Board::Type board, Board::Capability capability) return (IS_STM32(board) && !IS_RADIOMASTER_T8(board)); case HasIMU: - return (IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS(board)); + return (IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS(board) || IS_RADIOMASTER_TX15(board)); case HasInternalModuleSupport: return (IS_STM32(board) && !IS_TARANIS_X9(board));