mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-20 06:45:11 +03:00
Merge pull request #585 from alexeystn/osd_3d_speed_indicator
Add 3D speed OSD indicator
This commit is contained in:
commit
7cf1c76c08
2 changed files with 18 additions and 0 deletions
|
@ -2497,6 +2497,12 @@
|
|||
"osdElement_GPS_SPEED_HELP": {
|
||||
"message": "Shows GPS ground speed."
|
||||
},
|
||||
"osdElement_3D_SPEED": {
|
||||
"message": "3D Speed"
|
||||
},
|
||||
"osdElement_3D_SPEED_HELP": {
|
||||
"message": "Shows 3D speed considering both horizontal and vertical speed."
|
||||
},
|
||||
"osdElement_GPS_SATS": {
|
||||
"message": "GPS Satellites"
|
||||
},
|
||||
|
|
12
tabs/osd.js
12
tabs/osd.js
|
@ -755,6 +755,18 @@ OSD.constants = {
|
|||
return FONT.embed_dot(' 40') + FONT.symbol(SYM.KMH);
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '3D_SPEED',
|
||||
id: 85,
|
||||
preview: function(osd_data) {
|
||||
// 3 chars
|
||||
if (OSD.data.preferences.units === 0 || OSD.data.preferences.units === 2) {
|
||||
// Imperial
|
||||
return FONT.embed_dot(' 30') + FONT.symbol(SYM.MPH);
|
||||
}
|
||||
return FONT.embed_dot(' 48') + FONT.symbol(SYM.KMH);
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'GPS_SATS',
|
||||
id: 14,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue