mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-21 07:15:13 +03:00
Implement GVar OSD
This commit is contained in:
parent
7e1006863b
commit
aecfcb5569
2 changed files with 49 additions and 1 deletions
|
@ -2845,6 +2845,21 @@
|
|||
"osdElement_ESC_TEMPERATURE_HELP": {
|
||||
"message": "Temperature of the ESC read from DSHOT telemetry"
|
||||
},
|
||||
"osdGroupGVars": {
|
||||
"message": "Global Variables"
|
||||
},
|
||||
"osdElement_GVAR_0": {
|
||||
"message": "Global Variable 0"
|
||||
},
|
||||
"osdElement_GVAR_1": {
|
||||
"message": "Global Variable 1"
|
||||
},
|
||||
"osdElement_GVAR_2": {
|
||||
"message": "Global Variable 2"
|
||||
},
|
||||
"osdElement_GVAR_3": {
|
||||
"message": "Global Variable 3"
|
||||
},
|
||||
"osdElement_SENSOR1_TEMPERATURE": {
|
||||
"message": "Temperature sensor 1"
|
||||
},
|
||||
|
|
33
tabs/osd.js
33
tabs/osd.js
|
@ -90,6 +90,10 @@ SYM.DB = 0xEB;
|
|||
SYM.DBM = 0xEC;
|
||||
SYM.MW = 0xED;
|
||||
SYM.SNR = 0xEE;
|
||||
SYM.GVAR_1 = 0xEF;
|
||||
SYM.GVAR_2 = 0xF0;
|
||||
SYM.GVAR_3 = 0xF1;
|
||||
SYM.GVAR_4 = 0xF2;
|
||||
|
||||
var FONT = FONT || {};
|
||||
|
||||
|
@ -1372,6 +1376,35 @@ OSD.constants = {
|
|||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'osdGroupGVars',
|
||||
items: [
|
||||
{
|
||||
name: 'GVAR_0',
|
||||
id: 113,
|
||||
positionable: true,
|
||||
preview: 'G0:01337'
|
||||
},
|
||||
{
|
||||
name: 'GVAR_1',
|
||||
id: 114,
|
||||
positionable: true,
|
||||
preview: 'G1:31415'
|
||||
},
|
||||
{
|
||||
name: 'GVAR_2',
|
||||
id: 115,
|
||||
positionable: true,
|
||||
preview: 'G2:01611'
|
||||
},
|
||||
{
|
||||
name: 'GVAR_3',
|
||||
id: 116,
|
||||
positionable: true,
|
||||
preview: 'G3:30126'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'osdGroupPIDs',
|
||||
items: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue