tune stabilizer again

This commit is contained in:
Sebastien Bourdeauducq 2020-08-11 17:47:49 +08:00
parent 79a61a4073
commit da5676b2c7
1 changed files with 3 additions and 3 deletions

View File

@ -116,11 +116,11 @@ class Stabilizer:
self.wiggle_direction = 1 self.wiggle_direction = 1
self.amp_threshold = 80.0 self.amp_threshold = 80.0
self.k = 50.0e-6 self.k = 30.0e-6
self.tolerance = 10e3 self.tolerance = 10e3
self.lock_counter_threshold = 60 self.lock_counter_threshold = 60
self.unlock_counter_threshold = 1000 self.unlock_counter_threshold = 500
self.wiggle = 0.2 self.wiggle = 0.15
def input(self, samples): def input(self, samples):
spectrum = np.abs(np.fft.fft(samples*blackmanharris(len(samples)))) spectrum = np.abs(np.fft.fft(samples*blackmanharris(len(samples))))