Skip to content

Commit

Permalink
Add AUTOHD mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Nov 14, 2024
1 parent f4ea2a9 commit dc960ac
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ OSD.constants = {
'DJIWTF',
'AVATAR',
'BF43COMPAT',
'BFHDCOMPAT'
'BFHDCOMPAT',
'AUTOHD'
],
VIDEO_LINES: {
PAL: 16,
Expand All @@ -657,7 +658,8 @@ OSD.constants = {
DJIWTF: 22,
AVATAR: 20,
BF43COMPAT: 16,
BFHDCOMPAT: 20
BFHDCOMPAT: 20,
AUTOHD:22,
},
VIDEO_COLS: {
PAL: 30,
Expand All @@ -666,7 +668,8 @@ OSD.constants = {
DJIWTF: 60,
AVATAR: 53,
BF43COMPAT: 30,
BFHDCOMPAT: 53
BFHDCOMPAT: 53,
AUTOHD:60
},
VIDEO_BUFFER_CHARS: {
PAL: 480,
Expand All @@ -675,7 +678,8 @@ OSD.constants = {
DJIWTF: 1320,
AVATAR: 1060,
BF43COMPAT: 480,
BFHDCOMPAT: 1060
BFHDCOMPAT: 1060,
AUTOHD: 1320
},
UNIT_TYPES: [
{name: 'osdUnitImperial', value: 0},
Expand Down Expand Up @@ -2657,7 +2661,7 @@ OSD.GUI.checkAndProcessSymbolPosition = function(pos, charCode) {
}
};

const mspVideoSystem = [1,3,4,5,6,7]; // indexes of PAL, HDZERO, DJIWTF, AVATAR, BF43COMPAT & BFHDCOMPAT
const mspVideoSystem = [1,3,4,5,6,7,8]; // indexes of PAL, HDZERO, DJIWTF, AVATAR, BF43COMPAT, BFHDCOMPAT, AUTOHD
const analogVideoSystem = [0,1,2]; // indexes of AUTO, PAL, & NTSC

OSD.GUI.updateVideoMode = function() {
Expand Down

0 comments on commit dc960ac

Please sign in to comment.