@@ -274,7 +274,6 @@ TABS.pid_tuning.initialize = function (callback) {
274274 var cutoff = FILTER_CONFIG . gyro_soft_notch_cutoff_1 > 0 ? FILTER_CONFIG . gyro_soft_notch_cutoff_1 : DEFAULT . gyro_soft_notch_cutoff_1 ;
275275
276276 $ ( '.pid_filter input[name="gyroNotch1Frequency"]' ) . val ( checked ? hz : 0 ) . attr ( 'disabled' , ! checked ) ;
277- $ ( '.pid_filter input[name="gyroNotch1Cutoff"]' ) . val ( checked ? cutoff : 0 ) . attr ( 'disabled' , ! checked ) ;
278277 } ) ;
279278
280279 $ ( 'input[id="gyroNotch2Enabled"]' ) . change ( function ( ) {
@@ -283,7 +282,6 @@ TABS.pid_tuning.initialize = function (callback) {
283282 var cutoff = FILTER_CONFIG . gyro_soft_notch_cutoff_2 > 0 ? FILTER_CONFIG . gyro_soft_notch_cutoff_2 : DEFAULT . gyro_soft_notch_cutoff_2 ;
284283
285284 $ ( '.pid_filter input[name="gyroNotch2Frequency"]' ) . val ( checked ? hz : 0 ) . attr ( 'disabled' , ! checked ) ;
286- $ ( '.pid_filter input[name="gyroNotch2Cutoff"]' ) . val ( checked ? cutoff : 0 ) . attr ( 'disabled' , ! checked ) ;
287285 } ) ;
288286
289287 $ ( 'input[id="dtermNotchEnabled"]' ) . change ( function ( ) {
@@ -292,12 +290,11 @@ TABS.pid_tuning.initialize = function (callback) {
292290 var cutoff = FILTER_CONFIG . dterm_notch_cutoff > 0 ? FILTER_CONFIG . dterm_notch_cutoff : DEFAULT . dterm_notch_cutoff ;
293291
294292 $ ( '.pid_filter input[name="dTermNotchFrequency"]' ) . val ( checked ? hz : 0 ) . attr ( 'disabled' , ! checked ) ;
295- $ ( '.pid_filter input[name="dTermNotchCutoff"]' ) . val ( checked ? cutoff : 0 ) . attr ( 'disabled' , ! checked ) ;
296293 } ) ;
297294
298- $ ( 'input[id="gyroNotch1Enabled"]' ) . prop ( 'checked' , FILTER_CONFIG . gyro_soft_notch_cutoff_1 != 0 ) . change ( ) ;
299- $ ( 'input[id="gyroNotch2Enabled"]' ) . prop ( 'checked' , FILTER_CONFIG . gyro_soft_notch_cutoff_2 != 0 ) . change ( ) ;
300- $ ( 'input[id="dtermNotchEnabled"]' ) . prop ( 'checked' , FILTER_CONFIG . dterm_notch_cutoff != 0 ) . change ( ) ;
295+ $ ( 'input[id="gyroNotch1Enabled"]' ) . prop ( 'checked' , FILTER_CONFIG . gyro_soft_notch_hz_1 != 0 ) . change ( ) ;
296+ $ ( 'input[id="gyroNotch2Enabled"]' ) . prop ( 'checked' , FILTER_CONFIG . gyro_soft_notch_hz_2 != 0 ) . change ( ) ;
297+ $ ( 'input[id="dtermNotchEnabled"]' ) . prop ( 'checked' , FILTER_CONFIG . dterm_notch_hz != 0 ) . change ( ) ;
301298 }
302299
303300 function form_to_pid_and_rc ( ) {
0 commit comments