fix for compilers that don't support the CMPLX() macro
This commit is contained in:
@@ -166,7 +166,11 @@ void rxAddInput(const c16_t *input_sig,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (channelDesc->Doppler_phase_inc != 0.0) {
|
if (channelDesc->Doppler_phase_inc != 0.0) {
|
||||||
|
#ifdef CMPLX
|
||||||
double complex in = CMPLX(rx_tmp.r, rx_tmp.i);
|
double complex in = CMPLX(rx_tmp.r, rx_tmp.i);
|
||||||
|
#else
|
||||||
|
double complex in = rx_tmp.r + rx_tmp.i * I;
|
||||||
|
#endif
|
||||||
double complex out = in * cexp(channelDesc->Doppler_phase_cur[rxAnt] * I);
|
double complex out = in * cexp(channelDesc->Doppler_phase_cur[rxAnt] * I);
|
||||||
rx_tmp.r = creal(out);
|
rx_tmp.r = creal(out);
|
||||||
rx_tmp.i = cimag(out);
|
rx_tmp.i = cimag(out);
|
||||||
|
|||||||
Reference in New Issue
Block a user