- Bandpass analysis to set marker 1 to the center frequency, not peak

pull/36/head
Rune Broberg 2019-10-08 09:24:11 +02:00
rodzic c3122b1269
commit d4be5af09c
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -464,9 +464,6 @@ class BandPassAnalysis(Analysis):
logger.debug("Found peak of %f at %d", peak_db, self.app.data[peak_location].freq)
self.app.markers[0].setFrequency(str(self.app.data21[peak_location].freq))
self.app.markers[0].frequencyInput.setText(str(self.app.data21[peak_location].freq))
lower_cutoff_location = -1
pass_band_db = peak_db
for i in range(peak_location, -1, -1):
@ -521,6 +518,9 @@ class BandPassAnalysis(Analysis):
self.center_frequency_label.setText(NanoVNASaver.formatFrequency(center_frequency))
self.quality_label.setText(str(round(q, 2)))
self.app.markers[0].setFrequency(str(round(center_frequency)))
self.app.markers[0].frequencyInput.setText(str(round(center_frequency)))
# Lower roll-off
lower_six_db_location = -1