mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
When use magnetometer, add North symbol to GPS position icon (#3484)
* Add North when use magnetometer * Update src/js/tabs/map.js Co-authored-by: Mark Haslinghuis <mark@numloq.nl> --------- Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
parent
89b1bb9f80
commit
50554c1a80
6 changed files with 42 additions and 18 deletions
|
@ -432,9 +432,10 @@ setup.initialize = function (callback) {
|
|||
gpsFix_e.text(FC.GPS_DATA.fix ? i18n.getMessage('gpsFixTrue') : i18n.getMessage('gpsFixFalse'));
|
||||
gpsFix_e.toggleClass('ready', FC.GPS_DATA.fix != 0);
|
||||
|
||||
const gspUnitText = i18n.getMessage('gpsPositionUnit');
|
||||
gpsSats_e.text(FC.GPS_DATA.numSat);
|
||||
gpsLat_e.text(`${(FC.GPS_DATA.lat / 10000000).toFixed(4)} deg`);
|
||||
gpsLon_e.text(`${(FC.GPS_DATA.lon / 10000000).toFixed(4)} deg`);
|
||||
gpsLat_e.text(`${(FC.GPS_DATA.lat / 10000000).toFixed(4)} ${gspUnitText}`);
|
||||
gpsLon_e.text(`${(FC.GPS_DATA.lon / 10000000).toFixed(4)} ${gspUnitText}`);
|
||||
}
|
||||
|
||||
function get_fast_data() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue