mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Added peripheral device entry "Benewake LIDAR" for UART
This commit is contained in:
parent
a5b347489c
commit
2a002b97ff
3 changed files with 9 additions and 2 deletions
|
@ -24,7 +24,8 @@ function MspHelper () {
|
|||
'TBS_SMARTAUDIO': 11,
|
||||
'TELEMETRY_IBUS': 12,
|
||||
'IRC_TRAMP': 13,
|
||||
'RUNCAM_DEVICE_CONTROL': 14 // support communitate with RunCam Device
|
||||
'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device
|
||||
'LIDAR_TF': 15
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,10 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
|||
functionRules.push({ name: 'RUNCAM_DEVICE_CONTROL', groups: ['peripherals'], maxPorts: 1 });
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 });
|
||||
}
|
||||
|
||||
for (var i = 0; i < functionRules.length; i++) {
|
||||
functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue