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

issue #471: disable one of the demod checks #472

Merged
merged 1 commit into from
Mar 8, 2020
Merged
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
8 changes: 3 additions & 5 deletions lddecode/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,17 +1914,15 @@ def dropout_detect_demod(self):
# detect absurd fluctuations in pre-deemp demod, since only dropouts can cause them
# (current np.diff has a prepend option, but not in ubuntu 18.04's version)
iserr1 = f.data['video']['demod_raw'] > self.rf.freq_hz_half
iserr1 |= f.data['video']['demod_hpf'] > 1200000

#return iserr1 | iserr_rf
# This didn't work right for PAL (issue #471)
# iserr1 |= f.data['video']['demod_hpf'] > 3000000

# build sets of min/max valid levels

valid_min = np.full_like(f.data['video']['demod'], f.rf.iretohz(-60 if isPAL else -50))
valid_max = np.full_like(f.data['video']['demod'], f.rf.iretohz(150 if isPAL else 140))

# the minimum valid value during VSYNC is lower for PAL because of the pilot signal
minsync = -100 if self.rf.system == 'PAL' else -50
minsync = -100 if isPAL else -50

# these lines should cover both PAL and NTSC's hsync areas
if False:
Expand Down