fix wiggle amplitude

This commit is contained in:
Sebastien Bourdeauducq 2020-08-12 09:14:10 +08:00
parent 22bcbecab8
commit 7a4d901e6c
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Stabilizer:
self.unlock_counter += 1
if not success and (self.unlock_counter > self.unlock_counter_threshold):
print("wiggle")
self.wiggle = self.wiggle_amplitude*(np.random.random() - 0.5)
self.wiggle = self.wiggle_amplitude*2.0*(np.random.random() - 0.5)
self.unlock_counter = 0
self.cb(spectrum, freq, self.locked(), tuning + self.wiggle)