diff --git a/_locales/en/messages.json b/_locales/en/messages.json index c1428afe..962b09ad 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -624,6 +624,9 @@ }, "receiverRcExpo": { "message": "RC Expo" + }, + "receiverRcYawExpo": { + "message": "RC Yaw Expo" }, "receiverChannelMap": { "message": "Channel Map" diff --git a/js/data_storage.js b/js/data_storage.js index 1140c6b2..cc51e03b 100755 --- a/js/data_storage.js +++ b/js/data_storage.js @@ -75,7 +75,8 @@ var RC_tuning = { dynamic_THR_PID: 0, throttle_MID: 0, throttle_EXPO: 0, - dynamic_THR_breakpoint: 0 + dynamic_THR_breakpoint: 0, + RC_YAW_EXPO: 0 }; var AUX_CONFIG = []; diff --git a/js/msp.js b/js/msp.js index 24c998b7..5051ec9c 100644 --- a/js/msp.js +++ b/js/msp.js @@ -311,10 +311,16 @@ var MSP = { RC_tuning.throttle_MID = parseFloat((data.getUint8(offset++) / 100).toFixed(2)); RC_tuning.throttle_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2)); if (semver.gte(CONFIG.apiVersion, "1.7.0")) { - RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset++, 1); + RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset, 1); + offset += 2; } else { RC_tuning.dynamic_THR_breakpoint = 0; } + if (semver.gte(CONFIG.apiVersion, "1.10.0")) { + RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2)); + } else { + RC_tuning.RC_YAW_EXPO = 0; + } break; case MSP_codes.MSP_PID: // PID data arrived, we need to scale it and save to appropriate bank / array @@ -970,6 +976,9 @@ MSP.crunch = function (code) { if (semver.gte(CONFIG.apiVersion, "1.7.0")) { buffer.push(lowByte(RC_tuning.dynamic_THR_breakpoint)); buffer.push(highByte(RC_tuning.dynamic_THR_breakpoint)); + } + if (semver.gte(CONFIG.apiVersion, "1.10.0")) { + buffer.push(parseInt(RC_tuning.RC_YAW_EXPO * 100)); } break; // Disabled, cleanflight does not use MSP_SET_BOX. 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 efb1e63a..196f4c04 100644 --- a/tabs/receiver.html +++ b/tabs/receiver.html @@ -23,6 +23,14 @@
+ |
---|
+ |