0
0
mirror of https://github.com/ChristopheJacquet/PiFmRds synced 2025-10-05 15:52:50 +02:00

Switch generate_waveforms.py to Python 3, verify it works with Pydemod's latest commit. As a result, more decimal places in waveforms.c.

This commit is contained in:
Christophe Jacquet
2025-08-31 10:08:36 +02:00
parent dc5d94be02
commit dca154692c
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
# PiFmRds - FM/RDS transmitter for the Raspberry Pi
@@ -70,7 +70,7 @@ def generate_bit(name):
outc.write(u"float waveform_{name}[] = {{{values}}};\n\n".format(
name = name,
values = u", ".join(map(unicode, out/2.5))))
values = u", ".join(map(str, out/2.5))))
# note: need to limit the amplitude so as not to saturate when the biphase
# waveforms are summed

File diff suppressed because one or more lines are too long