Browse Source

fixes

master
parent
commit
6d0d2cb253
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      noptica.py

+ 2
- 2
noptica.py View File

@@ -66,8 +66,8 @@ class Stabilizer:
true_i, amplitude = parabolic(spectrum, i)
freq = 0.5 * self.freq_sample * true_i / len(spectrum)

if amplitude > threshold:
tuning = (freq - target_freq)*k
if amplitude > self.amp_threshold:
tuning = (freq - self.freq_target)*self.k
else:
tuning = 0.0
self.tuner.set(tuning)

Loading…
Cancel
Save