mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-20 06:45:11 +03:00
Initial coding
This commit is contained in:
parent
c28aa86232
commit
9a0967ea17
1 changed files with 9 additions and 5 deletions
14
tabs/osd.js
14
tabs/osd.js
|
@ -534,25 +534,29 @@ OSD.constants = {
|
||||||
'PAL',
|
'PAL',
|
||||||
'NTSC',
|
'NTSC',
|
||||||
'HDZERO',
|
'HDZERO',
|
||||||
'DJIWTF'
|
'DJIWTF',
|
||||||
|
'AVATAR'
|
||||||
],
|
],
|
||||||
VIDEO_LINES: {
|
VIDEO_LINES: {
|
||||||
PAL: 16,
|
PAL: 16,
|
||||||
NTSC: 13,
|
NTSC: 13,
|
||||||
HDZERO: 18,
|
HDZERO: 18,
|
||||||
DJIWTF: 22
|
DJIWTF: 22,
|
||||||
|
AVATAR: 20
|
||||||
},
|
},
|
||||||
VIDEO_COLS: {
|
VIDEO_COLS: {
|
||||||
PAL: 30,
|
PAL: 30,
|
||||||
NTSC: 30,
|
NTSC: 30,
|
||||||
HDZERO: 50,
|
HDZERO: 50,
|
||||||
DJIWTF: 60
|
DJIWTF: 60,
|
||||||
|
AVATAR: 54
|
||||||
},
|
},
|
||||||
VIDEO_BUFFER_CHARS: {
|
VIDEO_BUFFER_CHARS: {
|
||||||
PAL: 480,
|
PAL: 480,
|
||||||
NTSC: 390,
|
NTSC: 390,
|
||||||
HDZERO: 900,
|
HDZERO: 900,
|
||||||
DJIWTF: 1320
|
DJIWTF: 1320,
|
||||||
|
AVATAR: 1080
|
||||||
},
|
},
|
||||||
UNIT_TYPES: [
|
UNIT_TYPES: [
|
||||||
{name: 'osdUnitImperial', value: 0},
|
{name: 'osdUnitImperial', value: 0},
|
||||||
|
@ -2362,7 +2366,7 @@ OSD.GUI.checkAndProcessSymbolPosition = function(pos, charCode) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const mspVideoSystem = [1,3,4]; // indexes of PAL, HDZERO, & DJIWTF
|
const mspVideoSystem = [1,3,4,5]; // indexes of PAL, HDZERO, DJIWTF, & AVATAR
|
||||||
const analogVideoSystem = [0,1,2]; // indexes of AUTO, PAL, & NTSC
|
const analogVideoSystem = [0,1,2]; // indexes of AUTO, PAL, & NTSC
|
||||||
|
|
||||||
OSD.GUI.updateVideoMode = function() {
|
OSD.GUI.updateVideoMode = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue