1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fix MSP receiver control page

This commit is contained in:
Miguel Angel Mulero Martinez 2018-02-16 10:38:15 +01:00
parent 9c7297246d
commit 2b906a1a2e
3 changed files with 26 additions and 14 deletions

View file

@ -31,8 +31,8 @@ var
// First the vertical axis, then the horizontal:
gimbals = [
["throttle", "yaw"],
["pitch", "roll"],
["Throttle", "Yaw"],
["Pitch", "Roll"],
],
gimbalElems,
@ -40,6 +40,18 @@ var
enableTX = false;
// This is a hack to get the i18n var of the parent, but the localizePage not works
const i18n = opener.i18n;
$(document).ready(function () {
$('[i18n]:not(.i18n-replaced)').each(function() {
var element = $(this);
element.html(i18n.getMessage(element.attr('i18n')));
element.addClass('i18n-replaced');
});
})
function transmitChannels() {
var
channelValues = [0, 0, 0, 0, 0, 0, 0, 0];