mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 00:05:19 +03:00
Add support for MSL Altitude OSD indicator
This commit is contained in:
parent
f702132a8f
commit
534c172ca6
2 changed files with 17 additions and 0 deletions
|
@ -2512,6 +2512,12 @@
|
||||||
"osdElement_GPS_SPEED_HELP": {
|
"osdElement_GPS_SPEED_HELP": {
|
||||||
"message": "Shows GPS ground speed."
|
"message": "Shows GPS ground speed."
|
||||||
},
|
},
|
||||||
|
"osdElement_MSL_ALTITUDE": {
|
||||||
|
"message": "MSL Altitude"
|
||||||
|
},
|
||||||
|
"osdElement_MSL_ALTITUDE_HELP": {
|
||||||
|
"message": "Altitude above Mean Sea Level"
|
||||||
|
},
|
||||||
"osdElement_3D_SPEED": {
|
"osdElement_3D_SPEED": {
|
||||||
"message": "3D Speed"
|
"message": "3D Speed"
|
||||||
},
|
},
|
||||||
|
|
11
tabs/osd.js
11
tabs/osd.js
|
@ -807,6 +807,17 @@ OSD.constants = {
|
||||||
return FONT.embed_dot(' 40') + FONT.symbol(SYM.KMH);
|
return FONT.embed_dot(' 40') + FONT.symbol(SYM.KMH);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'MSL_ALTITUDE',
|
||||||
|
id: 87,
|
||||||
|
preview: function(osd_data) {
|
||||||
|
if (OSD.data.preferences.units === 0) {
|
||||||
|
// Imperial
|
||||||
|
return FONT.symbol(SYM.ALT_FT) + '275';
|
||||||
|
}
|
||||||
|
return FONT.symbol(SYM.ALT_M) + '477';
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '3D_SPEED',
|
name: '3D_SPEED',
|
||||||
id: 85,
|
id: 85,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue