0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

add some dps things and run at ratio 14

This commit is contained in:
2025-03-17 18:02:21 +01:00
parent c8c503bade
commit 6a9dfcfbc5
6 changed files with 37 additions and 17 deletions

View File

@@ -6,7 +6,10 @@ import io, os
if PLOT: import matplotlib.pyplot as plt
if FFT: import numpy as np # Import numpy for FFT
sample_rate = 11875
ratio = 14
sample_rate = 1187.5*ratio
print(f"{sample_rate=}")
if not sample_rate.is_integer(): raise ValueError("Need a even value")
# this is modified from ChristopheJacquet's pydemod
def rrcosfilter(NumSamples):