@@ -398,8 +398,8 @@ function FlightLogFieldPresenter() {
398398 'RTH' : {
399399 'debug[all]' :'RTH' ,
400400 'debug[0]' :'Rescue Throttle' ,
401- 'debug[1]' :'Rescue Angle' ,
402- 'debug[2]' :'Altitude Adjustment ' ,
401+ 'debug[1]' :'Rescue Pitch Angle' ,
402+ 'debug[2]' :'Throttle adjustment ' ,
403403 'debug[3]' :'Rescue State' ,
404404 } ,
405405 'ITERM_RELAX' : {
@@ -626,6 +626,27 @@ function FlightLogFieldPresenter() {
626626 'debug[2]' :'Frequency Offset' ,
627627 'debug[3]' :'Phase Shift' ,
628628 } ,
629+ 'GPS_RESCUE_VELOCITY' : {
630+ 'debug[all]' :'GPS Rescue Velocity' ,
631+ 'debug[0]' :'Velocity P' ,
632+ 'debug[1]' :'Velocity D' ,
633+ 'debug[2]' :'Velocity to Home' ,
634+ 'debug[3]' :'Target Velocity' ,
635+ } ,
636+ 'GPS_RESCUE_HEADING' : {
637+ 'debug[all]' :'GPS Rescue Heading' ,
638+ 'debug[0]' :'Rescue Yaw' ,
639+ 'debug[1]' :'Rescue Roll' ,
640+ 'debug[2]' :'Attitude' ,
641+ 'debug[3]' :'Angle to home' ,
642+ } ,
643+ 'GPS_RESCUE_TRACKING' : {
644+ 'debug[all]' :'GPS Rescue Tracking' ,
645+ 'debug[0]' :'Velocity to home' ,
646+ 'debug[1]' :'Target velocity' ,
647+ 'debug[2]' :'Altitude' ,
648+ 'debug[3]' :'Target altitude' ,
649+ } ,
629650 } ;
630651
631652 let DEBUG_FRIENDLY_FIELD_NAMES = null ;
@@ -678,6 +699,13 @@ function FlightLogFieldPresenter() {
678699 'debug[2]' :'Notch 3 Center Freq [dbg-axis]' ,
679700 'debug[3]' :'Gyro Pre Dyn Notch [dbg-axis]' ,
680701 } ;
702+ DEBUG_FRIENDLY_FIELD_NAMES . GPS_RESCUE_THROTTLE_PID = {
703+ 'debug[all]' :'GPS Rescue Altitude' ,
704+ 'debug[0]' :'Throttle P' ,
705+ 'debug[1]' :'Throttle D' ,
706+ 'debug[2]' :'Altitude' ,
707+ 'debug[3]' :'Target Altitude' ,
708+ } ;
681709 } else if ( semver . gte ( firmwareVersion , '4.2.0' ) ) {
682710 DEBUG_FRIENDLY_FIELD_NAMES . FF_INTERPOLATED = {
683711 'debug[all]' :'Feedforward [roll]' ,
@@ -999,10 +1027,14 @@ function FlightLogFieldPresenter() {
9991027 }
10001028 case 'RTH' :
10011029 switch ( fieldName ) {
1030+ case 'debug[0]' :
1031+ return value . toFixed ( 0 ) + 'us' ; // rescue throttle 1000-2000
10021032 case 'debug[1]' :
1003- return ( value / 100 ) . toFixed ( 1 ) + 'deg' ;
1033+ return ( value / 100 ) . toFixed ( 1 ) + 'deg' ; // rescue pitch angle
1034+ case 'debug[2]' :
1035+ return value . toFixed ( 0 ) + 'us' ; // altitude adjustment min to max throttle
10041036 default :
1005- return value . toFixed ( 0 ) ;
1037+ return value . toFixed ( 0 ) ; // coded values to 2000
10061038 }
10071039 case 'ITERM_RELAX' :
10081040 switch ( fieldName ) {
@@ -1056,7 +1088,16 @@ function FlightLogFieldPresenter() {
10561088 return value . toFixed ( 0 ) + "Hz" ;
10571089 }
10581090 case 'GPS_RESCUE_THROTTLE_PID' :
1059- return value . toFixed ( 0 ) ;
1091+ switch ( fieldName ) {
1092+ case 'debug[0]' : // Throttle P added uS
1093+ case 'debug[1]' : // Throttle D added * uS
1094+ return value . toFixed ( 0 ) + 'uS' ;
1095+ case 'debug[2]' : // current altitude in m
1096+ case 'debug[3]' : // TARGET altitude in m
1097+ return ( value / 100 ) . toFixed ( 1 ) + 'm' ;
1098+ default :
1099+ return value . toFixed ( 0 ) ;
1100+ }
10601101 case 'DYN_IDLE' :
10611102 switch ( fieldName ) {
10621103 case 'debug[3]' : // minRPS
@@ -1125,6 +1166,36 @@ function FlightLogFieldPresenter() {
11251166 default :
11261167 return value . toFixed ( 0 ) + 'us' ;
11271168 }
1169+ case 'GPS_RESCUE_VELOCITY' :
1170+ switch ( fieldName ) {
1171+ case 'debug[0]' : // Pitch P degrees * 100
1172+ case 'debug[1]' : // Pitch D degrees * 100
1173+ return ( value / 100 ) . toFixed ( 1 ) + 'deg' ;
1174+ case 'debug[2]' : // velocity to home cm/s
1175+ case 'debug[3]' : // velocity target cm/s
1176+ return ( value / 100 ) . toFixed ( 1 ) + 'm/s' ;
1177+ }
1178+ case 'GPS_RESCUE_HEADING' :
1179+ switch ( fieldName ) {
1180+ case 'debug[0]' : // Rescue yaw rate deg/s * 10 up to +/- 90
1181+ return ( value / 10 ) . toFixed ( 1 ) + 'deg/s' ;
1182+ case 'debug[1]' : // Rescue roll deg * 100 up to +/- 20 deg
1183+ return ( value / 100 ) . toFixed ( 1 ) + 'deg' ;
1184+ case 'debug[2]' : // Attitude in degrees * 10
1185+ case 'debug[3]' : // Angle to home in degrees * 10
1186+ return ( value / 10 ) . toFixed ( 1 ) + 'deg' ;
1187+ }
1188+ case 'GPS_RESCUE_TRACKING' :
1189+ switch ( fieldName ) {
1190+ case 'debug[0]' : // velocity to home cm/s
1191+ case 'debug[1]' : // velocity target cm/s
1192+ return ( value / 100 ) . toFixed ( 1 ) + 'm/s' ;
1193+ case 'debug[2]' : // altitude cm
1194+ case 'debug[3]' : // altitude target cm
1195+ return ( value / 100 ) . toFixed ( 1 ) + 'm' ;
1196+ default :
1197+ return value . toFixed ( 0 ) ;
1198+ }
11281199 }
11291200 return value . toFixed ( 0 ) ;
11301201 }
0 commit comments