From c537616a3979dd6e22882c9e2d96a1a4725a59fb Mon Sep 17 00:00:00 2001 From: cTn Date: Wed, 17 Sep 2014 16:08:40 +0200 Subject: [PATCH] hooked up (mostly palceholder) text to various inputs --- _locales/en/messages.json | 18 ++++++++++++++++++ tabs/configuration.css | 1 + tabs/configuration.html | 30 +++++++++++++++--------------- tabs/configuration.js | 4 ++-- 4 files changed, 36 insertions(+), 17 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 57e669db..c9fd6756 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -303,9 +303,27 @@ "configurationBoardAlignment": { "message": "Board Alignment" }, + "configurationBoardAlignmentRoll": { + "message": "Roll Adjustment [deg]" + }, + "configurationBoardAlignmentPitch": { + "message": "Pitch Adjustment [deg]" + }, + "configurationBoardAlignmentYaw": { + "message": "Yaw Adjustment [deg]" + }, "configurationAccelTrimMagDec": { "message": "Accelerometer & Magnetometer" }, + "configurationAccelTrimRoll": { + "message": "Accelerometer Roll Trim" + }, + "configurationAccelTrimPitch": { + "message": "Accelerometer Pitch Trim" + }, + "configurationMagDeclination": { + "message": "Magnetometer Declination [deg]" + }, "configurationThrottle": { "message": "Throttle" }, diff --git a/tabs/configuration.css b/tabs/configuration.css index 836a5b34..48f278ac 100644 --- a/tabs/configuration.css +++ b/tabs/configuration.css @@ -71,6 +71,7 @@ } .tab-configuration .number span { margin-left: 10px; + line-height: 20px; } .tab-configuration .buttons { position: fixed; diff --git a/tabs/configuration.html b/tabs/configuration.html index 6e9a2929..2c5780d7 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -21,19 +21,19 @@
@@ -41,20 +41,20 @@
@@ -64,25 +64,25 @@
@@ -91,19 +91,19 @@
diff --git a/tabs/configuration.js b/tabs/configuration.js index 7d30da53..d300cc1e 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -125,8 +125,8 @@ TABS.configuration.initialize = function (callback) { $('input[name="board_align_yaw"]').val(BF_CONFIG.board_align_yaw); // fill accel trims - $('input[name="pitch"]').val(CONFIG.accelerometerTrims[0]); $('input[name="roll"]').val(CONFIG.accelerometerTrims[1]); + $('input[name="pitch"]').val(CONFIG.accelerometerTrims[0]); // fill magnetometer $('input[name="mag_declination"]').val(MISC.mag_declination / 10); @@ -162,8 +162,8 @@ TABS.configuration.initialize = function (callback) { BF_CONFIG.board_align_pitch = parseInt($('input[name="board_align_pitch"]').val()); BF_CONFIG.board_align_yaw = parseInt($('input[name="board_align_yaw"]').val()); - CONFIG.accelerometerTrims[0] = parseInt($('input[name="pitch"]').val()); CONFIG.accelerometerTrims[1] = parseInt($('input[name="roll"]').val()); + CONFIG.accelerometerTrims[0] = parseInt($('input[name="pitch"]').val()); MISC.mag_declination = parseFloat($('input[name="mag_declination"]').val()) * 10; MISC.minthrottle = parseInt($('input[name="minthrottle"]').val());