FMCW¶
rfsoc_rfdc.dsp.fmcw
¶
FMCW implementation with signal generation and analysis capabilities.
Classes¶
FMCW
¶
Implements FMCW functionality.
Source code in rfsoc_rfdc/dsp/fmcw.py
Functions¶
generate(amp=1.0)
¶
Generates FMCW signal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amp
|
float
|
Amplitude of the signal. |
1.0
|
Returns:
| Type | Description |
|---|---|
|
np.ndarray: The generated FMCW waveform. |
Source code in rfsoc_rfdc/dsp/fmcw.py
analyze_mixed(wave_mix, sample_rate)
¶
Analyzes the mixed signal (de-chirped).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_mix
|
ndarray
|
The product of the transmitted and received signals. |
required |
sample_rate
|
float
|
Sampling rate in Hz. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
(delay_axis, chirp_mix_mat) delay_axis: Array of time delays corresponding to FFT bins. chirp_mix_mat: Matrix of FFT magnitudes for each chirp. |
Source code in rfsoc_rfdc/dsp/fmcw.py
analyze_digital(wave_loop, wave_air, sample_rate)
¶
Analyzes received FMCW signal by digitally mixing with a reference loopback.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_loop
|
ndarray
|
The reference loopback signal (Tx). |
required |
wave_air
|
ndarray
|
The received over-the-air signal (Rx). |
required |
sample_rate
|
float
|
Sampling rate. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
Results from analyze_mixed. |
Source code in rfsoc_rfdc/dsp/fmcw.py
Functions¶
simulate(wave_tx, delay_list, atten_list, phase_list, snr, sample_rate)
¶
Simulates channel propagation with multipath, attenuation, and noise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_tx
|
ndarray
|
Transmitted waveform. |
required |
delay_list
|
list
|
List of delays in seconds for each path. |
required |
atten_list
|
list
|
List of attenuation in dB for each path. |
required |
phase_list
|
list
|
List of phase shifts in degrees for each path. |
required |
snr
|
float
|
Signal-to-Noise Ratio in dB. |
required |
sample_rate
|
float
|
Sampling rate in Hz. |
required |
Returns:
| Type | Description |
|---|---|
|
np.ndarray: Received waveform with channel effects. |