File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import TuningSliders from "../TuningSliders";
1010import Model from "../model" ;
1111import RateCurve from "../RateCurve" ;
1212import MSPCodes from "../msp/MSPCodes" ;
13- import { API_VERSION_1_45 , API_VERSION_1_47 } from "../data_storage" ;
13+ import { API_VERSION_1_45 , API_VERSION_1_46 , API_VERSION_1_47 } from "../data_storage" ;
1414import { gui_log } from "../gui_log" ;
1515import { degToRad , isInt } from "../utils/common" ;
1616import semver from "semver" ;
@@ -914,6 +914,10 @@ pid_tuning.initialize = function (callback) {
914914 FC . RC_TUNING . dynamic_THR_breakpoint = parseInt ( $ ( '.tpa-old input[name="tpa-breakpoint"]' ) . val ( ) ) ;
915915 }
916916
917+ if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_46 ) ) {
918+ $ ( 'input[id="tpaBreakpoint"]' ) . attr ( { max : 2000 , min : 1000 } ) ;
919+ }
920+
917921 FC . FILTER_CONFIG . gyro_lowpass_hz = parseInt ( $ ( '.pid_filter input[name="gyroLowpassFrequency"]' ) . val ( ) ) ;
918922 FC . FILTER_CONFIG . dterm_lowpass_hz = parseInt ( $ ( '.pid_filter input[name="dtermLowpassFrequency"]' ) . val ( ) ) ;
919923 FC . FILTER_CONFIG . yaw_lowpass_hz = parseInt ( $ ( '.pid_filter input[name="yawLowpassFrequency"]' ) . val ( ) ) ;
You can’t perform that action at this time.
0 commit comments