@@ -68,17 +68,10 @@ function HeaderDialog(dialog, onSave) {
68
68
{ name :'pidSumLimitYaw' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.3.0' , max :'999.9.9' } ,
69
69
{ name :'rc_smoothing_type' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.4.0' , max :'4.2.999' } ,
70
70
{ name :'antiGravityMode' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'999.9.9' } ,
71
- { name :'rc_smoothing_cutoffs_1' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'4.2.999' } ,
72
- { name :'rc_smoothing_cutoffs_2' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'4.2.999' } ,
73
- { name :'rc_smoothing_filter_type_1' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'4.2.999' } ,
74
- { name :'rc_smoothing_filter_type_1' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'4.2.999' } ,
75
71
{ name :'rc_smoothing_rx_average' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'999.9.9' } ,
76
72
{ name :'rc_smoothing_debug_axis' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'3.5.0' , max :'999.9.9' } ,
77
73
{ name :'abs_control_gain' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'999.9.9' } ,
78
74
{ name :'use_integrated_yaw' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'999.9.9' } ,
79
- { name :'rc_smoothing_auto_factor' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'4.2.999' } ,
80
- { name :'rc_smoothing_active_cutoffs_1' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'4.2.999' } ,
81
- { name :'rc_smoothing_active_cutoffs_2' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'4.2.999' } ,
82
75
{ name :'rc_interpolation_channels' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.0.0' , max :'4.2.999' } ,
83
76
{ name :'gyro_rpm_notch_harmonics' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.1.0' , max :'999.9.9' } ,
84
77
{ name :'gyro_rpm_notch_q' , type :FIRMWARE_TYPE_BETAFLIGHT , min :'4.1.0' , max :'999.9.9' } ,
@@ -653,27 +646,37 @@ function HeaderDialog(dialog, onSave) {
653
646
654
647
setParameter ( 'rcSmoothingRxAverage' , sysConfig . rc_smoothing_rx_average , 3 ) ;
655
648
renderSelect ( 'rcSmoothingDebugAxis' , sysConfig . rc_smoothing_debug_axis , RC_SMOOTHING_DEBUG_AXIS ) ;
656
- // new in 4.3
657
- if ( activeSysConfig . firmwareType == FIRMWARE_TYPE_BETAFLIGHT && semver . gte ( activeSysConfig . firmwareVersion , '4.3.0' ) ) {
649
+
650
+ if ( activeSysConfig . firmwareType === FIRMWARE_TYPE_BETAFLIGHT && semver . gte ( activeSysConfig . firmwareVersion , '4.3.0' ) ) {
658
651
renderSelect ( 'rcSmoothingMode' , sysConfig . rc_smoothing_mode , RC_SMOOTHING_MODE ) ;
659
652
setParameter ( 'rcSmoothingFeedforwardHz' , sysConfig . rc_smoothing_feedforward_hz , 0 ) ;
660
- setParameter ( 'rcSmoothingSetpointHz' , sysConfig . rc_smoothing_setpoint_hz , 0 ) ;
661
- setParameter ( 'rcSmoothingAutoFactorSetpoint' , sysConfig . rc_smoothing_auto_factor_setpoint , 0 ) ;
653
+ setParameter ( 'rcSmoothingSetpointHz' , sysConfig . rc_smoothing_setpoint_hz , 0 ) ;
654
+ setParameter ( 'rcSmoothingAutoFactorSetpoint' , sysConfig . rc_smoothing_auto_factor_setpoint , 0 )
662
655
setParameter ( 'rcSmoothingThrottleHz' , sysConfig . rc_smoothing_throttle_hz , 0 ) ;
663
656
setParameter ( 'rcSmoothingAutoFactorThrottle' , sysConfig . rc_smoothing_auto_factor_throttle , 0 ) ;
664
657
setParameter ( 'rcSmoothingActiveCutoffsFf' , sysConfig . rc_smoothing_active_cutoffs_ff_sp_thr [ 0 ] , 0 ) ;
665
658
setParameter ( 'rcSmoothingActiveCutoffsSp' , sysConfig . rc_smoothing_active_cutoffs_ff_sp_thr [ 1 ] , 0 ) ;
666
659
setParameter ( 'rcSmoothingActiveCutoffsThr' , sysConfig . rc_smoothing_active_cutoffs_ff_sp_thr [ 2 ] , 0 ) ;
660
+ } else if ( activeSysConfig . firmwareType === FIRMWARE_TYPE_BETAFLIGHT && semver . gte ( activeSysConfig . firmwareVersion , '3.4.0' ) ) {
661
+ renderSelect ( 'rcSmoothingMode' , sysConfig . rc_smoothing_mode , RC_SMOOTHING_TYPE ) ;
662
+ setParameter ( 'rcSmoothingFeedforwardHz' , sysConfig . rc_smoothing_cutoffs [ 0 ] , 0 ) ;
663
+ setParameter ( 'rcSmoothingSetpointHz' , sysConfig . rc_smoothing_cutoffs [ 1 ] , 0 ) ;
664
+ setParameter ( 'rcSmoothingAutoFactorSetpoint' , sysConfig . rc_smoothing_auto_factor_setpoint , 0 ) ;
665
+ setParameter ( 'rcSmoothingThrottleHz' , sysConfig . rc_smoothing_cutoffs [ 1 ] , 0 ) ;
666
+ setParameter ( 'rcSmoothingAutoFactorThrottle' , sysConfig . rc_smoothing_auto_factor_setpoint , 0 ) ;
667
+ setParameter ( 'rcSmoothingActiveCutoffsFf' , sysConfig . rc_smoothing_active_cutoffs [ 0 ] , 0 ) ;
668
+ setParameter ( 'rcSmoothingActiveCutoffsSp' , sysConfig . rc_smoothing_active_cutoffs [ 1 ] , 0 ) ;
669
+ setParameter ( 'rcSmoothingActiveCutoffsThr' , sysConfig . rc_smoothing_active_cutoffs [ 1 ] , 0 ) ;
667
670
} else {
668
671
renderSelect ( 'rcSmoothingMode' , "0" , 0 ) ;
669
672
setParameter ( 'rcSmoothingFeedforwardHz' , "0" , 0 ) ;
670
673
setParameter ( 'rcSmoothingSetpointHz' , "0" , 0 ) ;
671
674
setParameter ( 'rcSmoothingAutoFactorSetpoint' , "0" , 0 ) ;
672
675
setParameter ( 'rcSmoothingThrottleHz' , "0" , 0 ) ;
673
676
setParameter ( 'rcSmoothingAutoFactorThrottle' , "0" , 0 ) ;
674
- setParameter ( 'rcSmoothingActiveCutoffsFf' , sysConfig . rc_smoothing_active_cutoffs [ 1 ] , 0 ) ;
675
- setParameter ( 'rcSmoothingActiveCutoffsSp' , sysConfig . rc_smoothing_active_cutoffs [ 0 ] , 0 ) ;
676
- setParameter ( 'rcSmoothingActiveCutoffsThr' , sysConfig . rc_smoothing_active_cutoffs [ 0 ] , 0 ) ;
677
+ setParameter ( 'rcSmoothingActiveCutoffsFf' , "0" , 0 ) ;
678
+ setParameter ( 'rcSmoothingActiveCutoffsSp' , "0" , 0 ) ;
679
+ setParameter ( 'rcSmoothingActiveCutoffsThr' , "0" , 0 ) ;
677
680
}
678
681
679
682
// D_MIN and rate_limits
0 commit comments