Skip to content

Commit

Permalink
changing minimum value for notch min -
Browse files Browse the repository at this point in the history
  • Loading branch information
loutwice committed May 19, 2020
1 parent c0e8ae3 commit 97df716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/tabs/pid_tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ TABS.pid_tuning.initialize = function(callback) {
FILTER_CONFIG.witchcraft_yaw = parseFloat($('.smartDTermWitchBox input[name="witchcraftYaw"]').val());
}

if ( semver.gte(CONFIG.apiVersion, "1.47.0")) {
if ( FEATURE_CONFIG.features.isEnabled('DYNAMIC_FILTER') && semver.gte(CONFIG.apiVersion, "1.47.0")) {
FILTER_CONFIG.dynamic_gyro_notch_q = parseFloat($('.pid_filter input[name="MatrixNotchQ"]').val());
FILTER_CONFIG.dynamic_gyro_notch_min_hz = parseFloat($('.pid_filter input[name="MatrixNotchMin"]').val());
}
Expand Down
4 changes: 2 additions & 2 deletions src/tabs/pid_tuning.html
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@

<tr class="matrixFilter">
<td>
<input type="number" class="nonProfile" name="MatrixNotchMin" step="1" min="1" max="1000"/>
<input type="number" class="nonProfile" name="MatrixNotchMin" step="1" min="30" max="1000"/>
</td>
<td>
<div>
Expand All @@ -1163,7 +1163,7 @@
</div>
</td>
</tr>

</table>
</div>

Expand Down

0 comments on commit 97df716

Please sign in to comment.