mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 05:45:25 +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
|
@ -1127,13 +1127,15 @@
|
||||||
"portsFunction_RUNCAM_DEVICE_CONTROL": {
|
"portsFunction_RUNCAM_DEVICE_CONTROL": {
|
||||||
"message": "RunCam Device"
|
"message": "RunCam Device"
|
||||||
},
|
},
|
||||||
|
|
||||||
"pidTuningProfileOption": {
|
"pidTuningProfileOption": {
|
||||||
"message": "Profile $1"
|
"message": "Profile $1"
|
||||||
},
|
},
|
||||||
"pidTuningRateProfileOption": {
|
"pidTuningRateProfileOption": {
|
||||||
"message": "Rateprofile $1"
|
"message": "Rateprofile $1"
|
||||||
},
|
},
|
||||||
|
"portsFunction_LIDAR_TF": {
|
||||||
|
"message": "Benewake LIDAR"
|
||||||
|
},
|
||||||
"pidTuningUpgradeFirmwareToChangePidController": {
|
"pidTuningUpgradeFirmwareToChangePidController": {
|
||||||
"message": "<span class=\"message-negative\">Changing PID controller disabled - you can change it via the CLI.</span> You have firmware with API version <span class=\"message-negative\">$1</span>, but this functionality requires <span class=\"message-positive\">$2</span>."
|
"message": "<span class=\"message-negative\">Changing PID controller disabled - you can change it via the CLI.</span> You have firmware with API version <span class=\"message-negative\">$1</span>, but this functionality requires <span class=\"message-positive\">$2</span>."
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,8 @@ function MspHelper () {
|
||||||
'TBS_SMARTAUDIO': 11,
|
'TBS_SMARTAUDIO': 11,
|
||||||
'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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
||||||
functionRules.push({ name: 'RUNCAM_DEVICE_CONTROL', groups: ['peripherals'], maxPorts: 1 });
|
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++) {
|
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