From ab883c6dc53f932b95822de519fceb5ad0fda2ef Mon Sep 17 00:00:00 2001 From: ProDrone Date: Sat, 9 May 2015 01:00:59 +0200 Subject: [PATCH] Cleanup code indention and positioning the rc_yaw_expo field --- js/msp.js | 4 ++-- tabs/receiver.css | 7 +++++++ tabs/receiver.html | 18 ++++++++---------- tabs/receiver.js | 4 ++-- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/js/msp.js b/js/msp.js index 0e50b920..1f6b44c8 100644 --- a/js/msp.js +++ b/js/msp.js @@ -310,8 +310,8 @@ var MSP = { if (semver.gte(CONFIG.apiVersion, "1.7.0")) { RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset++, 1); } - if (semver.gte(CONFIG.apiVersion, "1.10.0")) { - RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2)); + if (semver.gte(CONFIG.apiVersion, "1.10.0")) { + RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2)); } break; case MSP_codes.MSP_PID: diff --git a/tabs/receiver.css b/tabs/receiver.css index a8997b10..91d2b7b9 100644 --- a/tabs/receiver.css +++ b/tabs/receiver.css @@ -119,6 +119,13 @@ .tab-receiver .tunings .throttle { margin-bottom: 10px; } +.tab-receiver .tunings .rate { + margin-bottom: 10px; +} +.tab-receiver .tunings .yaw_rate { + margin-left: 127px; + margin-bottom: 10px; +} .tab-receiver .tunings table, .tab-receiver .tunings table th, .tab-receiver .tunings table td { padding: 4px; border: 1px solid #8b8b8b; diff --git a/tabs/receiver.html b/tabs/receiver.html index 085c4091..196f4c04 100644 --- a/tabs/receiver.html +++ b/tabs/receiver.html @@ -23,6 +23,14 @@ + + + + + + + +
-
- - - - - - - -
-
diff --git a/tabs/receiver.js b/tabs/receiver.js index 581933d5..0efb5f18 100644 --- a/tabs/receiver.js +++ b/tabs/receiver.js @@ -37,9 +37,9 @@ TABS.receiver.initialize = function (callback) { $('.tunings .rate input[name="rate"]').val(RC_tuning.RC_RATE.toFixed(2)); $('.tunings .rate input[name="expo"]').val(RC_tuning.RC_EXPO.toFixed(2)); - $('.tunings .yaw_rate input[name="yaw_expo"]').val(RC_tuning.RC_YAW_EXPO.toFixed(2)); + $('.tunings .yaw_rate input[name="yaw_expo"]').val(RC_tuning.RC_YAW_EXPO.toFixed(2)); - if (semver.lt(CONFIG.apiVersion, "1.10.0")) { + if (semver.lt(CONFIG.apiVersion, "1.10.0")) { $('.tunings .yaw_rate input[name="yaw_expo"]').hide(); }