mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
[OSD] Add support for FrSky OSD
Add peripheral bit definitions to check the port function mask. Depends on #1851 Depends on #1852
This commit is contained in:
parent
778e834759
commit
6b2c59b571
3 changed files with 9 additions and 1 deletions
|
@ -1550,6 +1550,9 @@
|
||||||
"portsFunction_RUNCAM_DEVICE_CONTROL": {
|
"portsFunction_RUNCAM_DEVICE_CONTROL": {
|
||||||
"message": "Camera (RunCam Protocol)"
|
"message": "Camera (RunCam Protocol)"
|
||||||
},
|
},
|
||||||
|
"portsFunction_FRSKY_OSD": {
|
||||||
|
"message": "OSD (FrSky Protocol)"
|
||||||
|
},
|
||||||
"pidTuningProfileOption": {
|
"pidTuningProfileOption": {
|
||||||
"message": "Profile $1"
|
"message": "Profile $1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,8 @@ function MspHelper () {
|
||||||
'TELEMETRY_IBUS': 12,
|
'TELEMETRY_IBUS': 12,
|
||||||
'IRC_TRAMP': 13,
|
'IRC_TRAMP': 13,
|
||||||
'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device
|
'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device
|
||||||
'LIDAR_TF': 15
|
'LIDAR_TF': 15,
|
||||||
|
'FRSKY_OSD': 16,
|
||||||
};
|
};
|
||||||
|
|
||||||
self.REBOOT_TYPES = {
|
self.REBOOT_TYPES = {
|
||||||
|
|
|
@ -53,6 +53,10 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
||||||
functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 });
|
functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (semver.gte(CONFIG.apiVersion, API_VERSION_1_43)) {
|
||||||
|
functionRules.push({ name: 'FRSKY_OSD', groups: ['peripherals'], maxPorts: 1 });
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; i < functionRules.length; i++) {
|
for (var i = 0; i < functionRules.length; i++) {
|
||||||
functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name);
|
functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue