Fix amplitude of a complex!
This commit is contained in:
parent
23971dd5e3
commit
7fcf27e53e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue