Fix amplitude of a complex!

pull/8/head
F5OEO 2018-08-06 09:30:26 +00:00
rodzic 23971dd5e3
commit 7fcf27e53e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -71,7 +71,7 @@ int dsp::arctan2(int y, int x) // Should be replaced with fast_atan2 from rtl_fm
void dsp::pushsample(std::complex<float> sample)
{
amplitude=norm(sample);
amplitude=abs(sample);
double phase=atan2(sample.imag(),sample.real());
//fprintf(stderr,"phase %f\n",phase);