Update slew rate threshold

pull/259/head 954910b
IanSB 2021-12-20 01:29:46 +00:00
rodzic 10b7ffd775
commit 954910b6ab
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -398,6 +398,7 @@ typedef struct {
#define GENLOCK_THRESHOLDS {0, 5, 10, 16, 25, 35}
#define GENLOCK_LOCKED_THRESHOLD 2
#define GENLOCK_FRAME_DELAY 12
#define GENLOCK_SLEW_RATE_THRESHOLD 5000
#define MEASURE_NLINES 100
#define PLL_PPM_LO 1

Wyświetl plik

@ -1281,7 +1281,7 @@ static void recalculate_hdmi_clock(int vlockmode, int genlock_adjust) {
break;
}
//log_info("%d", ppm_diff);
if (abs(ppm_diff) > genlock_speed && abs(ppm_diff) < (genlock_speed * 10)) {
if (abs(ppm_diff) > genlock_speed && abs(ppm_diff) < GENLOCK_SLEW_RATE_THRESHOLD) {
restricted_slew_rate = 1;
if (ppm_diff >= 0) {
f2 = current_pllh_clock + (current_pllh_clock * genlock_speed / 1000000);