kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
swap(IQ) <-> conj(IQ)
rodzic
e6b39445e2
commit
9ce1b56ee2
|
@ -155,8 +155,8 @@ int main(int argc, char *argv[]) {
|
|||
if (read_csample(fp, &z) == EOF) break;
|
||||
|
||||
if (swap) { // swap IQ
|
||||
w = cimag(z) + I*creal(z); // = cexp(-I*PI/2) * conj(z);
|
||||
|
||||
w = cimag(z) + I*creal(z); // = cexp(I*PI/2) * conj(z) = I * conj(z);
|
||||
// W(f) = Z(-f); fuer Spiegelung reicht: w = conj(z)
|
||||
}
|
||||
else { // translate
|
||||
t = (double)sample / sample_rate;
|
||||
|
|
Ładowanie…
Reference in New Issue