1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-20 14:55:14 +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', '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() {