Skip to content

Commit 889dba9

Browse files
committed
added raw iq
1 parent e5ffb83 commit 889dba9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python_hackrf/pyhackrf_tools/pyhackrf_sweep.pyx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,24 @@ cpdef int sweep_callback(c_pyhackrf.PyHackrfDevice device, cnp.ndarray[cnp.int8_
198198
'timestamp': time_str,
199199
'start_frequency': frequency,
200200
'stop_frequency': frequency + sample_rate // 4,
201-
'array': pwr[fft_1_start:fft_1_stop].astype(np.float32)
201+
'array': pwr[fft_1_start:fft_1_stop].astype(np.float32),
202+
'raw_iq': raw_iq,
202203
})
203204
device_data['queue'].put({
204205
'timestamp': time_str,
205206
'start_frequency': frequency + sample_rate // 2,
206207
'stop_frequency': frequency + (sample_rate * 3) // 4,
207-
'array': pwr[fft_2_start:fft_2_stop].astype(np.float32)
208+
'array': pwr[fft_2_start:fft_2_stop].astype(np.float32),
209+
'raw_iq': raw_iq,
208210
})
209211

210212
else:
211213
device_data['queue'].put({
212214
'timestamp': time_str,
213215
'start_frequency': frequency,
214216
'stop_frequency': frequency + sample_rate,
215-
'array': pwr.astype(np.float32)
217+
'array': pwr.astype(np.float32),
218+
'raw_iq': raw_iq,
216219
})
217220

218221
else:

0 commit comments

Comments
 (0)