mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 22:35:17 +03:00
Cleanup code indention and positioning the rc_yaw_expo field
This commit is contained in:
parent
502a70233a
commit
ab883c6dc5
4 changed files with 19 additions and 14 deletions
|
@ -310,8 +310,8 @@ var MSP = {
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.7.0")) {
|
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);
|
||||||
}
|
}
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.10.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.10.0")) {
|
||||||
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_PID:
|
case MSP_codes.MSP_PID:
|
||||||
|
|
|
@ -119,6 +119,13 @@
|
||||||
.tab-receiver .tunings .throttle {
|
.tab-receiver .tunings .throttle {
|
||||||
margin-bottom: 10px;
|
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 {
|
.tab-receiver .tunings table, .tab-receiver .tunings table th, .tab-receiver .tunings table td {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border: 1px solid #8b8b8b;
|
border: 1px solid #8b8b8b;
|
||||||
|
|
|
@ -23,6 +23,14 @@
|
||||||
<td><input type="number" name="expo" step="0.01" min="0" max="1" /></td>
|
<td><input type="number" name="expo" step="0.01" min="0" max="1" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<table class="yaw_rate">
|
||||||
|
<tr>
|
||||||
|
<th i18n="receiverRcYawExpo"></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="number" name="yaw_expo" step="0.01" min="0" max="1" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<div class="rssi_channel_wrapper">
|
<div class="rssi_channel_wrapper">
|
||||||
<div class="head" i18n="receiverRssiChannel"></div>
|
<div class="head" i18n="receiverRssiChannel"></div>
|
||||||
<select name="rssi_channel">
|
<select name="rssi_channel">
|
||||||
|
@ -42,16 +50,6 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="yaw_rate">
|
|
||||||
<table class="yaw_rate">
|
|
||||||
<tr>
|
|
||||||
<th i18n="receiverRcYawExpo"></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><input type="number" name="yaw_expo" step="0.01" min="0" max="1" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="curves">
|
<div class="curves">
|
||||||
<div class="throttle_curve">
|
<div class="throttle_curve">
|
||||||
|
|
|
@ -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="rate"]').val(RC_tuning.RC_RATE.toFixed(2));
|
||||||
$('.tunings .rate input[name="expo"]').val(RC_tuning.RC_EXPO.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();
|
$('.tunings .yaw_rate input[name="yaw_expo"]').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue