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:
@@ -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
Reference in New Issue
Block a user