Time domain samples scope for NR UE
Add a new scope data source (ueTimeDomainSamples) which provides time domain samples for antenna 0 to the scope. Add graphical representation of the data in imscope. Removed C-define from ENABLE_IMSCOPE cmake option, the #define was unused and this way code does not have to be recompiled when imscope enable state changes.
This commit is contained in:
@@ -480,6 +480,16 @@ void ShowUeScope(PHY_VARS_NR_UE *ue, float t)
|
||||
pdsch_iq_hist->Draw(iq_data, t, new_data);
|
||||
ImGui::TreePop();
|
||||
}
|
||||
if (ImGui::TreeNode("Time domain samples")) {
|
||||
static auto iq_data = new IQData();
|
||||
static auto time_domain_iq = new IQHist("Time domain samples");
|
||||
bool new_data = false;
|
||||
if (time_domain_iq->ShouldReadData()) {
|
||||
new_data = iq_data->TryCollect(&scope_array[ueTimeDomainSamples], t, time_domain_iq->GetEpsilon());
|
||||
}
|
||||
time_domain_iq->Draw(iq_data, t, new_data);
|
||||
ImGui::TreePop();
|
||||
}
|
||||
if (ImGui::TreeNode("Broadcast channel")) {
|
||||
ImGui::Text("RSRP %d", ue->measurements.ssb_rsrp_dBm[ue->frame_parms.ssb_index]);
|
||||
if (ImGui::TreeNode("IQ")) {
|
||||
|
||||
Reference in New Issue
Block a user