File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -707,6 +707,13 @@ function FlightLogFieldPresenter() {
707707 'debug[2]' : 'isLowPowerDisarmed' ,
708708 'debug[3]' : 'mspTelemetryDescriptor' ,
709709 } ;
710+ DEBUG_FRIENDLY_FIELD_NAMES . GPS_DOP = {
711+ 'debug[all]' : 'GPS Dilution of Precision' ,
712+ 'debug[0]' : 'Number of Satellites' ,
713+ 'debug[1]' : 'pDOP (positional - 3D)' ,
714+ 'debug[2]' : 'hDOP (horizontal - 2D)' ,
715+ 'debug[3]' : 'vDOP (vertical - 1D)' ,
716+ } ;
710717 } else if ( semver . gte ( firmwareVersion , '4.3.0' ) ) {
711718 DEBUG_FRIENDLY_FIELD_NAMES . FEEDFORWARD = {
712719 'debug[all]' :'Feedforward [roll]' ,
@@ -1292,6 +1299,16 @@ function FlightLogFieldPresenter() {
12921299 default :
12931300 return value . toFixed ( 0 ) ;
12941301 }
1302+ case 'GPS_DOP' :
1303+ switch ( fieldName ) {
1304+ case 'debug[0]' : // Number of Satellites
1305+ return value . toFixed ( 0 ) ;
1306+ case 'debug[1]' : // pDOP (positional - 3D)
1307+ case 'debug[2]' : // hDOP (horizontal - 2D)
1308+ case 'debug[3]' : // vDOP (vertical - 1D)
1309+ default :
1310+ return ( value / 100 ) . toFixed ( 1 ) ;
1311+ }
12951312 }
12961313 return value . toFixed ( 0 ) ;
12971314 }
You can’t perform that action at this time.
0 commit comments