fix(cpn): support IMU for TX15 (#6627)
This commit is contained in:
@@ -89,7 +89,7 @@ void BoardJson::afterLoadFixups(Board::Type board, InputsTable * inputs, Switche
|
|||||||
{
|
{
|
||||||
// TODO json files do not contain gyro defs
|
// TODO json files do not contain gyro defs
|
||||||
// Radio cmake directive IMU is currently used
|
// 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) {
|
if (getInputIndex(inputs, "TILT_X", Board::LVT_TAG) < 0) {
|
||||||
InputDefn defn;
|
InputDefn defn;
|
||||||
defn.type = AIT_FLEX;
|
defn.type = AIT_FLEX;
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
|
|||||||
return (IS_STM32(board) && !IS_RADIOMASTER_T8(board));
|
return (IS_STM32(board) && !IS_RADIOMASTER_T8(board));
|
||||||
|
|
||||||
case HasIMU:
|
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:
|
case HasInternalModuleSupport:
|
||||||
return (IS_STM32(board) && !IS_TARANIS_X9(board));
|
return (IS_STM32(board) && !IS_TARANIS_X9(board));
|
||||||
|
|||||||
Reference in New Issue
Block a user