Added 'Super Rates' title, reverted pterm setpoint weight range.
parent
6431927f06
commit
275d5d15a3
|
@ -856,6 +856,9 @@
|
||||||
"pidTuningRate": {
|
"pidTuningRate": {
|
||||||
"message": "Rate"
|
"message": "Rate"
|
||||||
},
|
},
|
||||||
|
"pidTuningSuperRate": {
|
||||||
|
"message": "Super Rate"
|
||||||
|
},
|
||||||
"pidTuningRatesPreview": {
|
"pidTuningRatesPreview": {
|
||||||
"message": "Rates Preview"
|
"message": "Rates Preview"
|
||||||
},
|
},
|
||||||
|
|
|
@ -305,7 +305,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="ptermSetpoint">
|
<tr class="ptermSetpoint">
|
||||||
<td><input type="number" name="ptermSetpoint-number" step="0.01" min="0.40" max="2.55"/></td>
|
<td><input type="number" name="ptermSetpoint-number" step="0.01" min="0.40" max="1.00"/></td>
|
||||||
<td class="slider"><input type="range" name="ptermSetpoint-range" step="0.01" min="0.40" max="2.55"/></td>
|
<td class="slider"><input type="range" name="ptermSetpoint-range" step="0.01" min="0.40" max="2.55"/></td>
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -236,6 +236,13 @@ TABS.pid_tuning.initialize = function (callback) {
|
||||||
$('.pid_tuning input[name="rc_rate_yaw"]').hide();
|
$('.pid_tuning input[name="rc_rate_yaw"]').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0")
|
||||||
|
|| semver.gte(CONFIG.flightControllerVersion, "2.8.0") && BF_CONFIG.features.isEnabled('SUPEREXPO_RATES')) {
|
||||||
|
$('#pid-tuning .rate').text(chrome.i18n.getMessage("pidTuningSuperRate"));
|
||||||
|
} else {
|
||||||
|
$('#pid-tuning .rate').text(chrome.i18n.getMessage("pidTuningRate"));
|
||||||
|
}
|
||||||
|
|
||||||
if (semver.gte(CONFIG.flightControllerVersion, '3.0.0')) {
|
if (semver.gte(CONFIG.flightControllerVersion, '3.0.0')) {
|
||||||
$('.pid_filter input[name="gyroNotchFrequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz);
|
$('.pid_filter input[name="gyroNotchFrequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz);
|
||||||
$('.pid_filter input[name="gyroNotchCutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff);
|
$('.pid_filter input[name="gyroNotchCutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff);
|
||||||
|
|
Loading…
Reference in New Issue