1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-19 14:25:13 +03:00

Initial coding

This commit is contained in:
Darren Lines 2022-11-19 11:23:40 +00:00
parent c28aa86232
commit 9a0967ea17

View file

@ -534,25 +534,29 @@ OSD.constants = {
'PAL',
'NTSC',
'HDZERO',
'DJIWTF'
'DJIWTF',
'AVATAR'
],
VIDEO_LINES: {
PAL: 16,
NTSC: 13,
HDZERO: 18,
DJIWTF: 22
DJIWTF: 22,
AVATAR: 20
},
VIDEO_COLS: {
PAL: 30,
NTSC: 30,
HDZERO: 50,
DJIWTF: 60
DJIWTF: 60,
AVATAR: 54
},
VIDEO_BUFFER_CHARS: {
PAL: 480,
NTSC: 390,
HDZERO: 900,
DJIWTF: 1320
DJIWTF: 1320,
AVATAR: 1080
},
UNIT_TYPES: [
{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
OSD.GUI.updateVideoMode = function() {