|
|
|
|
@ -16,14 +16,9 @@ if __name__ == "__main__":
|
|
|
|
|
graph = 'y'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create a sample signal (sum of two sine waves)
|
|
|
|
|
sampling_rate = 1024e3 # 250e3 # Hz
|
|
|
|
|
duration = 65536/sampling_rate # 1 # seconds
|
|
|
|
|
# t = np.linspace(0, duration, int(sampling_rate * duration), endpoint=False)
|
|
|
|
|
t = np.linspace(0, duration, int(sampling_rate * duration), endpoint=False)
|
|
|
|
|
# frequency1 = 50 # Hz
|
|
|
|
|
# frequency2 = 120 # Hz
|
|
|
|
|
# signal = 0.7 * np.sin(2 * np.pi * frequency1 * t) + np.sin(2 * np.pi * frequency2 * t)
|
|
|
|
|
|
|
|
|
|
sdr = RtlSdr()
|
|
|
|
|
|
|
|
|
|
|