Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Stankevich <alexey.stn@gmail.com>2018-10-22 23:22:27 +0300
committerAlexey Stankevich <alexey.stn@gmail.com>2018-10-22 23:22:27 +0300
commit5a68d9545d1cf9b566d443ea812738c8e8f3db1e (patch)
tree97e245223eeb4cd8eb62005503b3a2849c130267
parentd52d1700c6337b1bb564bf366602f42e8f149a46 (diff)
Add 3D speed OSD indicator
-rwxr-xr-x_locales/en/messages.json6
-rw-r--r--tabs/osd.js12
2 files changed, 18 insertions, 0 deletions
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 59664f37..b60d2c37 100755
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -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"
},
diff --git a/tabs/osd.js b/tabs/osd.js
index 642f4e89..d3501b72 100644
--- a/tabs/osd.js
+++ b/tabs/osd.js
@@ -756,6 +756,18 @@ OSD.constants = {
}
},
{
+ 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,
preview: FONT.symbol(SYM.GPS_SAT1) + FONT.symbol(SYM.GPS_SAT2) + '14'