Fix amplitude of a complex!

This commit is contained in:
F5OEO 2018-08-06 09:30:26 +00:00
parent 23971dd5e3
commit 7fcf27e53e

View file

@ -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);