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

Merge pull request #930 from McGiverGim/bf-fix_msp_control

Fix MSP receiver control page
This commit is contained in:
Michael Keller 2018-02-18 03:16:08 +13:00 committed by GitHub
commit 32ceac5497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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];