1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

[DJI] Add support for DJI FPV goggles and SBUS Fast protocol

This commit is contained in:
Konstantin (DigitalEntity) Sharlaimov 2020-01-02 10:34:57 +01:00
parent 57ca4be2aa
commit e6b5719cc4
4 changed files with 15 additions and 1 deletions

View file

@ -927,6 +927,9 @@
"portsFunction_FRSKY_OSD": { "portsFunction_FRSKY_OSD": {
"message": "FrSky OSD" "message": "FrSky OSD"
}, },
"portsFunction_DJI_FPV": {
"message": "DJI FPV VTX"
},
"pidTuningName": { "pidTuningName": {
"message": "Name" "message": "Name"
}, },

View file

@ -769,7 +769,8 @@ var FC = {
'IBUS', 'IBUS',
'JETI EXBUS', 'JETI EXBUS',
'TBS Crossfire', 'TBS Crossfire',
'FPort' 'FPort',
'SBUS Fast',
]; ];
return data; return data;

View file

@ -52,6 +52,7 @@ var mspHelper = (function (gui) {
'ESC': 18, 'ESC': 18,
'GSM_SMS': 19, 'GSM_SMS': 19,
'FRSKY_OSD': 20, 'FRSKY_OSD': 20,
'DJI_FPV': 21,
}; };
// Required for MSP_DEBUGMSG because console.log() doesn't allow omitting // Required for MSP_DEBUGMSG because console.log() doesn't allow omitting

View file

@ -93,6 +93,15 @@ TABS.ports.initialize = function (callback) {
); );
} }
if (semver.gte(CONFIG.flightControllerVersion, "2.4.0")) {
functionRules.push({
name: 'DJI_FPV',
groups: ['peripherals'],
maxPorts: 1 }
);
}
for (var i = 0; i < functionRules.length; i++) { for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name); functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
} }