Merge pull request #315 from mikeller/hide_gyro_notch_2_for_legacy
Hide gyro notch filter 2 settings for firmware < 3.0.1.10.3.x-maintenance v1.8.3
commit
433cc04c0e
|
@ -468,7 +468,7 @@
|
|||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="newFilter">
|
||||
<tr class="newFilter gyroNotch2">
|
||||
<td>
|
||||
<input type="number" class="nonProfile" name="gyroNotch2Frequency" step="1" min="0" max="500"/>
|
||||
</td>
|
||||
|
@ -481,7 +481,7 @@
|
|||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="newFilter">
|
||||
<tr class="newFilter gyroNotch2">
|
||||
<td>
|
||||
<input type="number" class="nonProfile" name="gyroNotch2Cutoff" step="1" min="0" max="500"/>
|
||||
</td>
|
||||
|
|
|
@ -257,13 +257,16 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
|
||||
$('input[name="dtermSetpoint-number"]').val(ADVANCED_TUNING.dtermSetpointWeight / 100);
|
||||
$('input[name="dtermSetpoint-range"]').val(ADVANCED_TUNING.dtermSetpointWeight / 100);
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '3.0.1')) {
|
||||
$('.pid_filter input[name="gyroNotch2Frequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz_2);
|
||||
$('.pid_filter input[name="gyroNotch2Cutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff_2);
|
||||
}
|
||||
} else {
|
||||
$('.pid_filter .newFilter').hide();
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '3.0.1')) {
|
||||
$('.pid_filter input[name="gyroNotch2Frequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz_2);
|
||||
$('.pid_filter input[name="gyroNotch2Cutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff_2);
|
||||
} else {
|
||||
$('.pid_filter .gyroNotch2').hide();
|
||||
}
|
||||
}
|
||||
|
||||
function form_to_pid_and_rc() {
|
||||
|
|
Loading…
Reference in New Issue