Skip to content
5 changes: 4 additions & 1 deletion src/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ const Features = function (config) {
if (
config.buildOptions.some(
(opt) =>
opt.includes("CRSF") || opt.includes("GHST") || opt.includes("FPORT") || opt.includes("JETI"),
opt.includes("CRSF") ||
opt.includes("GHST") ||
opt.includes("FPORT") ||
opt.includes("JETI"),
)
) {
enableTelemetry = true;
Expand Down
2 changes: 1 addition & 1 deletion src/js/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ function update() {

delete DEBUG.fieldNames.GPS_RESCUE_THROTTLE_PID;
delete DEBUG.fieldNames.GYRO_SCALED;

DEBUG.fieldNames["MULTI_GYRO_RAW"] = DEBUG.fieldNames.DUAL_GYRO_RAW;
DEBUG.fieldNames["MULTI_GYRO_DIFF"] = DEBUG.fieldNames.DUAL_GYRO_DIFF;
DEBUG.fieldNames["MULTI_GYRO_SCALED"] = DEBUG.fieldNames.DUAL_GYRO_SCALED;
Expand Down
10 changes: 9 additions & 1 deletion src/js/fc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { bit_check } from "./bit";
import { reactive } from "vue";
import { API_VERSION_1_45, API_VERSION_1_46 } from "./data_storage";
import { API_VERSION_1_45, API_VERSION_1_46, API_VERSION_1_47 } from "./data_storage";
import semver from "semver";

const INITIAL_CONFIG = {
Expand Down Expand Up @@ -84,6 +84,7 @@ const FIRMWARE_BUILD_OPTIONS = {
USE_SERIALRX_SUMD: 4106,
USE_SERIALRX_SUMH: 4107,
USE_SERIALRX_XBUS: 4108,
USE_SERIALRX_MAVLINK: 4109,

// Motor Protocols
USE_BRUSHED: 8230,
Expand Down Expand Up @@ -804,6 +805,10 @@ const FC = {
serialRxTypes[0] = "NONE";
serialRxTypes.push("SPEKTRUM1024");
}

if (semver.gte(apiVersion, API_VERSION_1_47)) {
serialRxTypes.push("MAVLINK");
}

return serialRxTypes;
},
Expand Down Expand Up @@ -851,6 +856,9 @@ const FC = {
if (options.includes("USE_SERIALRX_GHST")) {
supportedRxTypes.push("IRC GHOST");
}
if (options.includes("USE_SERIALRX_MAVLINK")) {
supportedRxTypes.push("MAVLINK");
}
return supportedRxTypes;
}

Expand Down