Fix air/ground status. Tooltip/infoblock changes
This commit is contained in:
parent
540e5f8e95
commit
71f2c99e96
3 changed files with 23 additions and 10 deletions
|
|
@ -92,6 +92,17 @@ function format_altitude_long(alt, vr, displayUnits) {
|
|||
}
|
||||
}
|
||||
|
||||
// alt ground/airborne
|
||||
function format_onground (alt) {
|
||||
if (alt === null) {
|
||||
return "n/a";
|
||||
} else if (alt === "ground") {
|
||||
return "on ground";
|
||||
} else {
|
||||
return "airborne";
|
||||
}
|
||||
}
|
||||
|
||||
// alt in feet
|
||||
function convert_altitude(alt, displayUnits) {
|
||||
if (displayUnits === "metric") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue