Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit f8f27a2

Browse files
authored
Merge pull request #537 from hydra/bf-merges-20200531
Bf merges 20200531
2 parents 5da7c2a + aa1d8ca commit f8f27a2

File tree

8 files changed

+23
-14
lines changed

8 files changed

+23
-14
lines changed

changelog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<li>Euskera (Basque)</li>
3434
<li>Portugu&ecirc;s Brasileiro (Brasilian Portugese)</li>
3535
<li>polski (Polish)</li>
36-
<li>magyar (Hungarian)</li>
36+
<li>Magyar (Hungarian)</li>
3737
<li>&#32321;&#39636;&#20013;&#25991; (Traditional Chinese)</li>
3838
</ul>
3939
</li>

locales/en/messages.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"description": "Don't translate!!!"
145145
},
146146
"language_hu": {
147-
"message": "magyar",
147+
"message": "Magyar",
148148
"description": "Don't translate!!!"
149149
},
150150
"language_id": {
@@ -1576,6 +1576,9 @@
15761576
"portsFunction_RUNCAM_DEVICE_CONTROL": {
15771577
"message": "Camera (RunCam Protocol)"
15781578
},
1579+
"portsFunction_FRSKY_OSD": {
1580+
"message": "OSD (FrSky Protocol)"
1581+
},
15791582
"pidTuningProfileOption": {
15801583
"message": "Profile $1"
15811584
},

src/js/msp/MSPHelper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ function MspHelper () {
2424
'TELEMETRY_IBUS': 12,
2525
'IRC_TRAMP': 13,
2626
'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device
27-
'LIDAR_TF': 15
27+
'LIDAR_TF': 15,
28+
'FRSKY_OSD': 16,
2829
};
2930

3031
self.REBOOT_TYPES = {

src/js/tabs/configuration.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,8 +1231,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
12311231
newDenominator = value;
12321232
newFrequency = pidSelectElement.find('option:selected').text();
12331233
}
1234-
self.analyticsChanges['PIDLoopDenominator'] = newDenominator;
1235-
self.analyticsChanges['PIDLoopFrequency'] = newFrequency;
1234+
self.analyticsChanges['PIDLoopSettings'] = `denominator: ${newDenominator} | frequency: ${newFrequency}`;
12361235

12371236
PID_ADVANCED_CONFIG.pid_process_denom = value;
12381237

src/js/tabs/osd.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,8 +1881,10 @@ OSD.msp = {
18811881

18821882
d.state = {};
18831883
d.state.haveSomeOsd = (d.flags != 0)
1884-
d.state.haveMax7456Video = bit_check(d.flags, 4) || (d.flags == 1 && semver.lt(CONFIG.apiVersion, "1.34.0"));
1885-
d.state.isMax7456Detected = bit_check(d.flags, 5) || (d.state.haveMax7456Video && semver.lt(CONFIG.apiVersion, API_VERSION_1_43));
1884+
d.state.haveMax7456Configured = bit_check(d.flags, 4) || (d.flags == 1 && semver.lt(CONFIG.apiVersion, "1.34.0"));
1885+
d.state.haveFrSkyOSDConfigured = semver.gte(CONFIG.apiVersion, API_VERSION_1_43) && bit_check(d.flags, 3);
1886+
d.state.haveMax7456FontDeviceConfigured = d.state.haveMax7456Configured || d.state.haveFrSkyOSDConfigured;
1887+
d.state.isMax7456FontDeviceDetected = bit_check(d.flags, 5) || (d.state.haveMax7456FontDeviceConfigured && semver.lt(CONFIG.apiVersion, API_VERSION_1_43));
18861888
d.state.haveOsdFeature = bit_check(d.flags, 0) || (d.flags == 1 && semver.lt(CONFIG.apiVersion, "1.34.0"));
18871889
d.state.isOsdSlave = bit_check(d.flags, 1) && semver.gte(CONFIG.apiVersion, "1.34.0");
18881890

@@ -2258,7 +2260,7 @@ TABS.osd.initialize = function (callback) {
22582260

22592261
OSD.msp.decode(info);
22602262

2261-
if (!OSD.data.state.haveMax7456Video || !OSD.data.state.isMax7456Detected) {
2263+
if (OSD.data.state.haveMax7456FontDeviceConfigured && !OSD.data.state.isMax7456FontDeviceDetected) {
22622264
$('.noOsdChipDetect').show();
22632265
}
22642266

@@ -2495,12 +2497,12 @@ TABS.osd.initialize = function (callback) {
24952497
}
24962498
}
24972499

2498-
if (!OSD.data.state.haveMax7456Video) {
2500+
if (!OSD.data.state.haveMax7456Configured) {
24992501
$('.requires-max7456').hide();
25002502
}
25012503

2502-
if (!OSD.data.state.haveMax7456Video || !OSD.data.state.isMax7456Detected) {
2503-
$('.requires-detected-max7456').addClass('disabled');
2504+
if (!OSD.data.state.isMax7456FontDeviceDetected || !OSD.data.state.haveMax7456FontDeviceConfigured) {
2505+
$('.requires-max7456-font-device-detected').addClass('disabled');
25042506
}
25052507

25062508
if (!OSD.data.state.haveOsdFeature) {

src/js/tabs/ports.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ TABS.ports.initialize = function (callback, scrollPosition) {
5353
functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 });
5454
}
5555

56+
if (semver.gte(CONFIG.apiVersion, API_VERSION_1_43)) {
57+
functionRules.push({ name: 'FRSKY_OSD', groups: ['peripherals'], maxPorts: 1 });
58+
}
59+
5660
for (var i = 0; i < functionRules.length; i++) {
5761
functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name);
5862
}

src/tabs/osd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ <h3 i18n="osdSetupCustomLogoInfoTitle"></h3>
202202
<a class="active save" href="#" i18n="osdSetupSave"></a>
203203
</div>
204204
<div class="btn">
205-
<a class="fonts requires-detected-max7456" id="fontmanager" href="#" i18n="osdSetupFontManager"></a>
205+
<a class="requires-max7456-font-device-detected fonts" id="fontmanager" href="#" i18n="osdSetupFontManager"></a>
206206
</div>
207207
</div>
208208
</div>

src/tabs/power.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
</label>
173173
</div>
174174
<div class="number">
175-
<label> <input type="number" name="capacity" step="1" min="0" max="65535" /> <span
175+
<label> <input type="number" name="capacity" step="1" min="0" max="20000" /> <span
176176
i18n="powerBatteryCapacity"></span>
177177
</label>
178178
</div>
@@ -203,7 +203,7 @@
203203
</label>
204204
</div>
205205
<div class="number">
206-
<label> <input type="number" name="amperageoffset" step="1" min=-32000" max="32000" /> <span
206+
<label> <input type="number" name="amperageoffset" step="1" min="-32000" max="32000" /> <span
207207
i18n="powerAmperageOffset"></span>
208208
</label>
209209
</div>

0 commit comments

Comments
 (0)