@@ -799,6 +799,12 @@ function update() {
799
799
}
800
800
801
801
if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_47 ) ) {
802
+ DEBUG . modes . splice ( DEBUG . modes . indexOf ( 'GPS_RESCUE_THROTTLE_PID' ) , 1 , 'AUTOPILOT_ALTITUDE' ) ;
803
+ DEBUG . modes . splice ( DEBUG . modes . indexOf ( 'GYRO_SCALED' ) , 1 ) ;
804
+
805
+ delete DEBUG . fieldNames . GPS_RESCUE_THROTTLE_PID ;
806
+ delete DEBUG . fieldNames . GYRO_SCALED ;
807
+
802
808
DEBUG . fieldNames . FFT_FREQ = {
803
809
'debug[all]' : 'Debug FFT FREQ' ,
804
810
'debug[0]' : 'Gyro Pre Dyn Notch [dbg-axis]' ,
@@ -810,18 +816,6 @@ function update() {
810
816
'debug[6]' : 'Notch 6 Center Freq [dbg-axis]' ,
811
817
'debug[7]' : 'Notch 7 Center Freq [dbg-axis]' ,
812
818
} ;
813
- DEBUG . fieldNames . TPA = {
814
- 'debug[all]' : 'TPA' ,
815
- 'debug[0]' : 'TPA Factor' ,
816
- 'debug[1]' : 'TPA Pitch Angle Factor (Wing)' ,
817
- 'debug[2]' : 'TPA Argument (Wing)' ,
818
- } ;
819
-
820
- DEBUG . modes . splice ( DEBUG . modes . indexOf ( 'GPS_RESCUE_THROTTLE_PID' ) , 1 , 'AUTOPILOT_ALTITUDE' ) ;
821
- DEBUG . modes . splice ( DEBUG . modes . indexOf ( 'GYRO_SCALED' ) , 1 ) ;
822
-
823
- delete DEBUG . fieldNames . GPS_RESCUE_THROTTLE_PID ;
824
- delete DEBUG . fieldNames . GYRO_SCALED ;
825
819
826
820
DEBUG . fieldNames . AUTOPILOT_ALTITUDE = {
827
821
'debug[all]' : 'Autopilot Altitude' ,
@@ -834,6 +828,17 @@ function update() {
834
828
'debug[6]' : 'Altitude D' ,
835
829
'debug[7]' : 'Altitude F' ,
836
830
} ;
831
+
832
+ DEBUG . fieldNames . TPA = {
833
+ 'debug[all]' : 'TPA' ,
834
+ 'debug[0]' : 'TPA Factor' ,
835
+ 'debug[1]' : 'TPA Attitude Roll (Wing)' ,
836
+ 'debug[2]' : 'TPA Attitude Pitch (Wing)' ,
837
+ 'debug[3]' : 'TPA Calculated Throttle (Wing)' ,
838
+ 'debug[4]' : 'TPA Speed (Wing)' ,
839
+ 'debug[5]' : 'TPA Argument (Wing)' ,
840
+ } ;
841
+
837
842
DEBUG . enableFields . splice ( DEBUG . enableFields . indexOf ( "Gyro" ) , 0 , "Attitude" ) ;
838
843
}
839
844
}
0 commit comments