Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AUTOHD mode #2241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading