I tried to compile the Teensy_SDR code and there a re a large number of errors like this:
Code:
filters.cpp:5: error: narrowing conversion of '2.84086189e+1f' from 'float' to 'short int' inside { } [-Wnarrowing]
They are all caused by the inclusion of the filter coefficients which are like this, for example,
Code:
32768 * 428.8698225779810E-18
The problem is that this constant is being included in an array of short integers and the compiler is having indigestion. It can be fixed by editing each of the six offending .h files and changing every entry so that it looks like this:
Code:
(short) (32768 * 428.8698225779810E-18),
I have edited all six files and with this fix, the code compiles. I've attached a zip archive of the 6 edited files.
Teensy_SDR_h.zip
Pete