mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Merge pull request #264 from mikeller/ui_updates
Added 'Super Rates' title, reverted pterm setpoint weight range.
This commit is contained in:
commit
388ac3dde3
3 changed files with 11 additions and 1 deletions
|
@ -856,6 +856,9 @@
|
|||
"pidTuningRate": {
|
||||
"message": "Rate"
|
||||
},
|
||||
"pidTuningSuperRate": {
|
||||
"message": "Super Rate"
|
||||
},
|
||||
"pidTuningRatesPreview": {
|
||||
"message": "Rates Preview"
|
||||
},
|
||||
|
|
|
@ -305,7 +305,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<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 colspan=2>
|
||||
<div>
|
||||
|
|
|
@ -236,6 +236,13 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
$('.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')) {
|
||||
$('.pid_filter input[name="gyroNotchFrequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz);
|
||||
$('.pid_filter input[name="gyroNotchCutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue