mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-21 07:15:13 +03:00
Update mission_control.js
This commit is contained in:
parent
1d33014271
commit
dbb9bd1c0c
1 changed files with 9 additions and 5 deletions
|
@ -657,11 +657,15 @@ TABS.mission_control.initialize = function (callback) {
|
|||
renderHomeOnMap();
|
||||
});
|
||||
|
||||
(async () => {
|
||||
const elevationAtHome = await HOME.getElevation(globalSettings);
|
||||
$('#elevationValueAtHome').text(elevationAtHome+' m');
|
||||
HOME.setAlt(elevationAtHome);
|
||||
})()
|
||||
if (HOME.getLatMap() == 0 && HOME.getLonMap() == 0) {
|
||||
HOME.setAlt("N/A");
|
||||
} else {
|
||||
(async () => {
|
||||
const elevationAtHome = await HOME.getElevation(globalSettings);
|
||||
$('#elevationValueAtHome').text(elevationAtHome+' m');
|
||||
HOME.setAlt(elevationAtHome);
|
||||
})()
|
||||
}
|
||||
|
||||
if (globalSettings.mapProviderType == 'bing') {
|
||||
$('#elevationEarthModelclass').fadeIn(300);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue