mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 00:35:20 +03:00
Change 'RunCam Split' to 'RunCam Device'
This commit is contained in:
parent
aba2fc421c
commit
eddf5473f4
4 changed files with 6 additions and 6 deletions
|
@ -787,8 +787,8 @@
|
||||||
"portsFunction_BLACKBOX": {
|
"portsFunction_BLACKBOX": {
|
||||||
"message": "Blackbox"
|
"message": "Blackbox"
|
||||||
},
|
},
|
||||||
"portsFunction_RUNCAM_SPLIT_CONTROL": {
|
"portsFunction_RUNCAM_DEVICE_CONTROL": {
|
||||||
"message": "RunCam Split"
|
"message": "RunCam Device"
|
||||||
},
|
},
|
||||||
"portsFunction_TBS_SMARTAUDIO": {
|
"portsFunction_TBS_SMARTAUDIO": {
|
||||||
"message": "TBS SmartAudio"
|
"message": "TBS SmartAudio"
|
||||||
|
|
|
@ -42,7 +42,7 @@ var mspHelper = (function (gui) {
|
||||||
'BLACKBOX': 7,
|
'BLACKBOX': 7,
|
||||||
'TELEMETRY_MAVLINK': 8,
|
'TELEMETRY_MAVLINK': 8,
|
||||||
'TELEMETRY_IBUS': 9,
|
'TELEMETRY_IBUS': 9,
|
||||||
'RUNCAM_SPLIT_CONTROL' : 10,
|
'RUNCAM_DEVICE_CONTROL' : 10,
|
||||||
'TBS_SMARTAUDIO': 11,
|
'TBS_SMARTAUDIO': 11,
|
||||||
'IRC_TRAMP': 12
|
'IRC_TRAMP': 12
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@ function isPeripheralSelected(peripheralName) {
|
||||||
|
|
||||||
// Adjust the real name for a modeId. Useful if it belongs to a peripheral
|
// Adjust the real name for a modeId. Useful if it belongs to a peripheral
|
||||||
function adjustBoxNameIfPeripheralWithModeID(modeId, defaultName) {
|
function adjustBoxNameIfPeripheralWithModeID(modeId, defaultName) {
|
||||||
if (isPeripheralSelected("RUNCAM_SPLIT_CONTROL")) {
|
if (isPeripheralSelected("RUNCAM_DEVICE_CONTROL")) {
|
||||||
switch (modeId) {
|
switch (modeId) {
|
||||||
case 39: // BOXCAMERA1
|
case 39: // BOXCAMERA1
|
||||||
return "CAMERA WI-FI";
|
return "CAMERA WI-FI";
|
||||||
|
|
|
@ -40,10 +40,10 @@ TABS.ports.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// support configure RunCam Split
|
// support configure RunCam Device
|
||||||
if (semver.gte(CONFIG.flightControllerVersion, "1.7.3")) {
|
if (semver.gte(CONFIG.flightControllerVersion, "1.7.3")) {
|
||||||
functionRules.push({
|
functionRules.push({
|
||||||
name: 'RUNCAM_SPLIT_CONTROL',
|
name: 'RUNCAM_DEVICE_CONTROL',
|
||||||
groups: ['peripherals'],
|
groups: ['peripherals'],
|
||||||
maxPorts: 1 }
|
maxPorts: 1 }
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue