Merge pull request #611 from iNavFlight/dzikuvx-pid-tuning-tab-update

Update for PID Tuning tab
pull/552/head
Paweł Spychalski 6 years ago committed by GitHub
commit b2b3527946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2838,5 +2838,23 @@
}, },
"mapApiKey": { "mapApiKey": {
"message": "Map API key" "message": "Map API key"
},
"accNotchHz": {
"message": "Acc. notch filter freq."
},
"accNotchHzHelp": {
"message": "Allow to set a single notch filter for accelerometer readout. Should be configured in the same way as gyro notch if accelerometer records a noise spike above acc. LPF filter"
},
"accNotchCutoff": {
"message": "Acc. notch filter cutoff freq."
},
"accNotchCutoffHelp": {
"message": "Should be kept below acc. notch filter frequency"
},
"gyroStage2LpfCutoffFrequency": {
"message": "Gyro Stage 2 LPF cutoff frequency"
},
"gyroStage2LpfCutoffFrequencyHelp": {
"message": "Second stage gyro low pass filter that is an equivalent of Betaflight not-Kalman stage2 filter. It has to be setup above first stage gyro LPF. For 5 and 6-inch miniquads, this usually means above 150Hz. 7-inch quads above 125Hz."
} }
} }

@ -223,6 +223,13 @@
<div class="helpicon cf_tip" data-i18n_title="gyroLpfCutoffFrequencyHelp"></div> <div class="helpicon cf_tip" data-i18n_title="gyroLpfCutoffFrequencyHelp"></div>
</td> </td>
</tr> </tr>
<tr class="requires-v2_1">
<th data-i18n="gyroStage2LpfCutoffFrequency"></th>
<td>
<input type="number" id="gyroStage2LpfCutoffFrequency" data-simple-bind="FILTER_CONFIG.gyroStage2LowpassHz" class="rate-tpa_input" step="1" min="0" max="500" /> Hz
<div class="helpicon cf_tip" data-i18n_title="gyroStage2LpfCutoffFrequencyHelp"></div>
</td>
</tr>
<tr> <tr>
<th data-i18n="accLpfCutoffFrequency"></th> <th data-i18n="accLpfCutoffFrequency"></th>
<td> <td>
@ -294,6 +301,20 @@
<div class="helpicon cf_tip" data-i18n_title="dtermNotchCutoffHelp"></div> <div class="helpicon cf_tip" data-i18n_title="dtermNotchCutoffHelp"></div>
</td> </td>
</tr> </tr>
<tr class="requires-v2_1">
<th data-i18n="accNotchHz"></th>
<td>
<input type="number" data-simple-bind="FILTER_CONFIG.accNotchHz" id="accNotchHz" class="rate-tpa_input" step="1" min="0" max="255" /> Hz
<div class="helpicon cf_tip" data-i18n_title="accNotchHzHelp"></div>
</td>
</tr>
<tr class="requires-v2_1">
<th data-i18n="accNotchCutoff"></th>
<td>
<input type="number" data-simple-bind="FILTER_CONFIG.accNotchCutoff" id="gyroNotchCutoff2" class="rate-tpa_input" step="1" min="0" max="500" /> Hz
<div class="helpicon cf_tip" data-i18n_title="accNotchCutoffHelp"></div>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
@ -316,14 +337,14 @@
<div class="helpicon cf_tip" data-i18n_title="yawPLimitHelp"></div> <div class="helpicon cf_tip" data-i18n_title="yawPLimitHelp"></div>
</td> </td>
</tr> </tr>
<tr> <tr class="deprecated-v2_0">
<th data-i18n="rollPitchItermIgnoreRate"></th> <th data-i18n="rollPitchItermIgnoreRate"></th>
<td > <td >
<input type="number" id="rollPitchItermIgnoreRate" class="rate-tpa_input" step="5" min="15" max="1000" /> <input type="number" id="rollPitchItermIgnoreRate" class="rate-tpa_input" step="5" min="15" max="1000" />
<div class="helpicon cf_tip" data-i18n_title="rollPitchItermIgnoreRateHelp"></div> <div class="helpicon cf_tip" data-i18n_title="rollPitchItermIgnoreRateHelp"></div>
</td> </td>
</tr> </tr>
<tr> <tr class="deprecated-v2_0">
<th data-i18n="yawItermIgnoreRate"></th> <th data-i18n="yawItermIgnoreRate"></th>
<td > <td >
<input type="number" id="yawItermIgnoreRate" class="rate-tpa_input" step="5" min="15" max="1000" /> <input type="number" id="yawItermIgnoreRate" class="rate-tpa_input" step="5" min="15" max="1000" />

@ -207,6 +207,18 @@ TABS.pid_tuning.initialize = function (callback) {
$('.requires-v1_6').hide(); $('.requires-v1_6').hide();
} }
if (semver.gte(CONFIG.flightControllerVersion, "2.0.0")) {
$('.deprecated-v2_0').hide();
} else {
$('.deprecated-v2_0').show();
}
if (semver.gte(CONFIG.flightControllerVersion, "2.1.0")) {
$('.requires-v2_1').show();
} else {
$('.requires-v2_1').hide();
}
GUI.simpleBind(); GUI.simpleBind();
// UI Hooks // UI Hooks

Loading…
Cancel
Save