|
|
@ -67,23 +67,35 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.firstLineInFrame.push_back(static_cast<bool>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/indexParameters/lastLineInFrame ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/lastLineInFrame", floatArray); |
|
|
|
scenParams.indexParams.lastLineInFrame.clear(); |
|
|
|
/**************** /sramParameters/indexParameters/startOfSubBatch ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/startOfSubBatch", floatArray); |
|
|
|
scenParams.indexParams.startOfSubBatch.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.lastLineInFrame.push_back(static_cast<bool>(floatArray[var])); |
|
|
|
scenParams.indexParams.startOfSubBatch.push_back(static_cast<bool>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/indexParameters/dLineNum ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/dLineNum", floatArray); |
|
|
|
scenParams.indexParams.dLineNum.clear(); |
|
|
|
/**************** /sramParameters/indexParameters/endOfSubBatch ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/endOfSubBatch", floatArray); |
|
|
|
scenParams.indexParams.endOfSubBatch.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.dLineNum.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.indexParams.endOfSubBatch.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/indexParameters/dEnsembleNum ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/dEnsembleNum", floatArray); |
|
|
|
scenParams.indexParams.dEnsembleNum.clear(); |
|
|
|
/**************** /sramParameters/indexParameters/endOfSubFrame ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/endOfSubFrame", floatArray); |
|
|
|
scenParams.indexParams.endOfSubFrame.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.dEnsembleNum.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.indexParams.endOfSubFrame.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/indexParameters/endOfEnsemble ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/endOfEnsemble", floatArray); |
|
|
|
scenParams.indexParams.endOfEnsemble.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.endOfEnsemble.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/indexParameters/isLastSubBatch ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/indexParameters/isLastSubBatch", floatArray); |
|
|
|
scenParams.indexParams.isLastSubBatch.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.totalTxShotNumber; var++) |
|
|
|
scenParams.indexParams.isLastSubBatch.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /sramParameters/txParameters/txFocusXPos ********************/ |
|
|
|
datasetBranch <float_t>("/sramParameters/txParameters/txFocusXPos", floatArray); |
|
|
@ -544,22 +556,22 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
focusNo.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/lineFilterEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/lineFilterEn", floatArray); |
|
|
|
QList<quint32> lineFilterEn; |
|
|
|
/**************** /registerParameters/receiverConfigProperties/iqDataCrossEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/iqDataCrossEn", floatArray); |
|
|
|
QList<quint32> iqDataCrossEn; |
|
|
|
|
|
|
|
for (quint32 j = 0; j < scenParams.hwRegister.receiverConfigTypeNumber; j++) |
|
|
|
{ |
|
|
|
lineFilterEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
iqDataCrossEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/dpeEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/dpeEn", floatArray); |
|
|
|
QList<quint32> dpeEn; |
|
|
|
/**************** /registerParameters/receiverConfigProperties/logEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/logEn", floatArray); |
|
|
|
QList<quint32> logEn; |
|
|
|
|
|
|
|
for (quint32 j = 0; j < scenParams.hwRegister.receiverConfigTypeNumber; j++) |
|
|
|
{ |
|
|
|
dpeEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
logEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/ddcEn ********************/ |
|
|
@ -571,13 +583,22 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
ddcEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/wmfEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/wmfEn", floatArray); |
|
|
|
QList<quint32> wmfEn; |
|
|
|
/**************** /registerParameters/receiverConfigProperties/frameType ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/frameType", floatArray); |
|
|
|
QList<quint32> frameType; |
|
|
|
|
|
|
|
for (quint32 j = 0; j < scenParams.hwRegister.receiverConfigTypeNumber; j++) |
|
|
|
{ |
|
|
|
frameType.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/noiseRejectEn ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/noiseRejectEn", floatArray); |
|
|
|
QList<quint32> noiseRejectEn; |
|
|
|
|
|
|
|
for (quint32 j = 0; j < scenParams.hwRegister.receiverConfigTypeNumber; j++) |
|
|
|
{ |
|
|
|
wmfEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
noiseRejectEn.push_back(static_cast<quint32>(floatArray[j])); |
|
|
|
} |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties ********************/ |
|
|
@ -586,24 +607,46 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
|
|
|
|
for (qint32 j = 0; j < scenParams.hwRegister.receiverConfigTypeNumber; j++) |
|
|
|
{ |
|
|
|
receiverCfgObj.mla = receiverCfgMla.at(j); |
|
|
|
receiverCfgObj.stb = stb.at(j); |
|
|
|
receiverCfgObj.ddcEn = ddcEn.at(j); |
|
|
|
receiverCfgObj.absEn = absEn.at(j); |
|
|
|
receiverCfgObj.dpeEn = dpeEn.at(j); |
|
|
|
receiverCfgObj.logEn = logEn.at(j); |
|
|
|
receiverCfgObj.stbEn = stbEn.at(j); |
|
|
|
receiverCfgObj.wmfEn = wmfEn.at(j); |
|
|
|
receiverCfgObj.lpfSel = lpfSel.at(j); |
|
|
|
receiverCfgObj.aTgcSel = aTgcSel.at(j); |
|
|
|
receiverCfgObj.focusNo = focusNo.at(j); |
|
|
|
receiverCfgObj.lineMode = lineMode.at(j); |
|
|
|
receiverCfgObj.mla = receiverCfgMla.at(j); |
|
|
|
receiverCfgObj.frameType = frameType.at(j); |
|
|
|
receiverCfgObj.dcCancelEn = dcCancelEn.at(j); |
|
|
|
receiverCfgObj.ncoFreqSel = ncoFreqSel.at(j); |
|
|
|
receiverCfgObj.lineFilterEn = lineFilterEn.at(j); |
|
|
|
receiverCfgObj.iqDataCrossEn = iqDataCrossEn.at(j); |
|
|
|
receiverCfgObj.noiseRejectEn = noiseRejectEn.at(j); |
|
|
|
receiverCfgObj.subtractFilterEn = subtractFilterEn.at(j); |
|
|
|
|
|
|
|
scenParams.hwRegister.receiverConfigProps.push_back(receiverCfgObj); |
|
|
|
} |
|
|
|
|
|
|
|
scenParams.hwRegister.mlaOffsetAddr.clear(); |
|
|
|
/**************** /registerParameters/sramFrameParameters/bOffset *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/sramFrameParameters/bOffset", floatArray); |
|
|
|
scenParams.hwRegister.mlaOffsetAddr.push_back(static_cast<quint32>(floatArray[0])); |
|
|
|
|
|
|
|
/**************** /registerParameters/sramFrameParameters/dOffset *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/sramFrameParameters/dOffset", floatArray); |
|
|
|
scenParams.hwRegister.mlaOffsetAddr.push_back(static_cast<quint32>(floatArray[0])); |
|
|
|
|
|
|
|
/**************** /registerParameters/sramFrameParameters/bLastOffset *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/sramFrameParameters/bLastOffset", floatArray); |
|
|
|
scenParams.hwRegister.mlaOffsetAddr.push_back(static_cast<quint32>(floatArray[0])); |
|
|
|
|
|
|
|
/**************** /registerParameters/sramFrameParameters/dLastOffset *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/sramFrameParameters/dLastOffset", floatArray); |
|
|
|
scenParams.hwRegister.mlaOffsetAddr.push_back(static_cast<quint32>(floatArray[0])); |
|
|
|
|
|
|
|
/**************** /registerParameters/noiseRejectValue *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/noiseRejectValue", floatArray); |
|
|
|
scenParams.hwRegister.noiseRejectValue = static_cast<quint32>(floatArray[0]); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -624,6 +667,16 @@ void Hdf5::prbDependParamsRead(ScenPrbDepHardwareParam &prbDepParams) |
|
|
|
prbDepParams.prbDepParams.apodizationLut.push_back(tempApodization); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// /**************** /registerParameters/aTgcLut ********************/
|
|
|
|
// datasetBranch <float_t>("/registerParameters/aTgcLut", floatArray);
|
|
|
|
// QList <quint32> atgc;
|
|
|
|
|
|
|
|
// for (quint32 j = 0; j < 128; j++)
|
|
|
|
// {
|
|
|
|
// atgc.push_back(static_cast<quint32>(floatArray[j + i * 128]));
|
|
|
|
// }
|
|
|
|
|
|
|
|
/**************** /registerParameters/aTgcLut ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/aTgcLut", floatArray); |
|
|
|
prbDepParams.prbDepParams.atgcLut.clear(); |
|
|
|