@@ -194,8 +194,6 @@ setup.initialize = function (callback) {
194
194
arming_disable_flags_e = $ ( '.arming-disable-flags' ) ,
195
195
gpsFix_e = $ ( '.GPS_info span.colorToggle' ) ,
196
196
gpsSats_e = $ ( '.gpsSats' ) ,
197
- gpsLat_e = $ ( '.gpsLat' ) ,
198
- gpsLon_e = $ ( '.gpsLon' ) ,
199
197
roll_e = $ ( 'dd.roll' ) ,
200
198
pitch_e = $ ( 'dd.pitch' ) ,
201
199
heading_e = $ ( 'dd.heading' ) ,
@@ -428,14 +426,15 @@ setup.initialize = function (callback) {
428
426
}
429
427
430
428
// GPS info is acquired in the background using update_live_status() in serial_backend.js
431
-
432
429
gpsFix_e . text ( FC . GPS_DATA . fix ? i18n . getMessage ( 'gpsFixTrue' ) : i18n . getMessage ( 'gpsFixFalse' ) ) ;
433
430
gpsFix_e . toggleClass ( 'ready' , FC . GPS_DATA . fix != 0 ) ;
434
-
435
- const gspUnitText = i18n . getMessage ( 'gpsPositionUnit' ) ;
436
431
gpsSats_e . text ( FC . GPS_DATA . numSat ) ;
437
- gpsLat_e . text ( `${ ( FC . GPS_DATA . lat / 10000000 ) . toFixed ( 4 ) } ${ gspUnitText } ` ) ;
438
- gpsLon_e . text ( `${ ( FC . GPS_DATA . lon / 10000000 ) . toFixed ( 4 ) } ${ gspUnitText } ` ) ;
432
+
433
+ const lat = FC . GPS_DATA . lat / 10000000 ;
434
+ const lon = FC . GPS_DATA . lon / 10000000 ;
435
+ const url = `https://maps.google.com/?q=${ lat } ,${ lon } ` ;
436
+ const gpsUnitText = i18n . getMessage ( 'gpsPositionUnit' ) ;
437
+ $ ( '.GPS_info td.latLon a' ) . prop ( 'href' , url ) . text ( `${ lat . toFixed ( 4 ) } ${ gpsUnitText } / ${ lon . toFixed ( 4 ) } ${ gpsUnitText } ` ) ;
439
438
}
440
439
441
440
function get_fast_data ( ) {
0 commit comments