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:
parent
57ca4be2aa
commit
e6b5719cc4
4 changed files with 15 additions and 1 deletions
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
3
js/fc.js
3
js/fc.js
|
@ -769,7 +769,8 @@ var FC = {
|
||||||
'IBUS',
|
'IBUS',
|
||||||
'JETI EXBUS',
|
'JETI EXBUS',
|
||||||
'TBS Crossfire',
|
'TBS Crossfire',
|
||||||
'FPort'
|
'FPort',
|
||||||
|
'SBUS Fast',
|
||||||
];
|
];
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue