creaktive / flare

nRF905 single-chip radio transceiver demodulator + FLARM protocol decoder
GNU General Public License v3.0
56 stars 21 forks source link

Binary to signed-int conversion #1

Open nbonniere opened 8 years ago

nbonniere commented 8 years ago

Max ADC value 255 - 127 is 128 unsigned, which is actually -128 in a signed int_8.

// sliding_dft(raw_buffer[i] - 127, raw_buffer[i + 1] - 127); sliding_dft(raw_buffer[i] ^ 0x80, raw_buffer[i + 1] ^ 0x80);