|
|
@ -84,18 +84,18 @@ void TrxBoard::setFpgaOffset() |
|
|
|
_fpgaOffset << 0x100000 << 0x200000 << 0x300000; |
|
|
|
} |
|
|
|
|
|
|
|
QList<quint32> TrxBoard::signedVector2unsignedList (QVector<qint32>& sgnVec) |
|
|
|
{ |
|
|
|
_unsignedQntzrList.clear(); |
|
|
|
// std::list<uint> _usgnList (sgnVec.begin(), sgnVec.end());
|
|
|
|
// _unsignedQntzrList.fromStdList(_usgnList);
|
|
|
|
foreach (auto i, sgnVec) |
|
|
|
{ |
|
|
|
_unsignedQntzrList.push_back(static_cast<quint32>(i)); |
|
|
|
} |
|
|
|
|
|
|
|
return _unsignedQntzrList; |
|
|
|
} |
|
|
|
//QList<quint32> TrxBoard::signedVector2unsignedList (QVector<qint32>& sgnVec)
|
|
|
|
//{
|
|
|
|
// _unsignedQntzrList.clear();
|
|
|
|
//// std::list<uint> _usgnList (sgnVec.begin(), sgnVec.end());
|
|
|
|
//// _unsignedQntzrList.fromStdList(_usgnList);
|
|
|
|
// foreach (auto i, sgnVec)
|
|
|
|
// {
|
|
|
|
// _unsignedQntzrList.push_back(static_cast<quint32>(i));
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return _unsignedQntzrList;
|
|
|
|
//}
|
|
|
|
|
|
|
|
TrxBoard::TrxBoard() : _offsetSlave0(0), _offsetSlave1(0x400000), _offsetSlave2(0x800000) |
|
|
|
{ |
|
|
@ -293,8 +293,8 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
QList<quint32> y; |
|
|
|
QList<quint32> z; |
|
|
|
|
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->xPosition, |
|
|
|
//_signedQntzrVec.clear();
|
|
|
|
_unsignedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->xPosition, |
|
|
|
1, |
|
|
|
18, |
|
|
|
0, |
|
|
@ -302,11 +302,10 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
true, |
|
|
|
true, |
|
|
|
true); |
|
|
|
//QList<quint32> xPosQ = _unsignedQntzrVec.toList();
|
|
|
|
QList<quint32> xPosQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
QList<quint32> xPosQ = _unsignedQntzrVec.toList(); |
|
|
|
//QList<quint32> xPosQ = signedVector2unsignedList(_signedQntzrVec);
|
|
|
|
|
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->yPosition, |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->yPosition, |
|
|
|
1, |
|
|
|
18, |
|
|
|
0, |
|
|
@ -314,10 +313,9 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
true, |
|
|
|
true, |
|
|
|
true); |
|
|
|
QList<quint32> yPosQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
QList<quint32> yPosQ = _unsignedQntzrVec.toList(); |
|
|
|
|
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->zPosition, |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(scenParams->hwRegister->elementPosition->zPosition, |
|
|
|
0, |
|
|
|
17, |
|
|
|
0, |
|
|
@ -325,7 +323,7 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
true, |
|
|
|
true, |
|
|
|
true); |
|
|
|
QList<quint32> zPosQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
QList<quint32> zPosQ = _unsignedQntzrVec.toList(); |
|
|
|
|
|
|
|
for(quint8 i = 0; i < 3; i++) |
|
|
|
{ |
|
|
@ -397,24 +395,22 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
this->_dsp->receiverConfigurationLut(scenParams->hwRegister->receiverConfigTypeNumber, |
|
|
|
scenParams->hwRegister->configLut); |
|
|
|
|
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(scenParams->hwRegister->freqLut, 0, 24, 0, 0, true); |
|
|
|
QList<quint32> freqLutQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(scenParams->hwRegister->freqLut, 0, 24, 0, 0, true); |
|
|
|
QList<quint32> freqLutQ = _unsignedQntzrVec.toList(); |
|
|
|
this->_dsp->frequencyLut(freqLutQ); |
|
|
|
|
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(scenParams->hwRegister->dtgcLut, 0, 12, 8, 0, true, false); |
|
|
|
QList<quint32> dtgcLutQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(scenParams->hwRegister->dtgcLut, 0, 12, 8, 0, true, false); |
|
|
|
QList<quint32> dtgcLutQ = _unsignedQntzrVec.toList(); |
|
|
|
this->_dsp->dtgcLut(dtgcLutQ); |
|
|
|
|
|
|
|
QList<quint32> temp; |
|
|
|
QList<QList<quint32> > blendWeightQ; |
|
|
|
_signedQntzrVec.clear(); |
|
|
|
//_signedQntzrVec.clear();
|
|
|
|
foreach(auto vec, scenParams->hwRegister->blendWeight) |
|
|
|
{ |
|
|
|
temp.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(vec, 0, 9, 8, 0, true, false, true); |
|
|
|
temp = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(vec, 0, 9, 8, 0, true, false, true); |
|
|
|
temp = _unsignedQntzrVec.toList(); |
|
|
|
blendWeightQ.push_back(temp); |
|
|
|
} |
|
|
|
this->_dsp->blendWeight(blendWeightQ); |
|
|
@ -458,9 +454,8 @@ void TrxBoard::setScenario (ScenGenHardwareOutput* scenParams) |
|
|
|
|
|
|
|
void TrxBoard::setLineFilterCoefficient(QVector<float>& lineFilterLut) |
|
|
|
{ |
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(lineFilterLut, 0, 9, 8, 0, true, false); |
|
|
|
QList<quint32> lineFilterLutQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(lineFilterLut, 0, 9, 8, 0, true, false); |
|
|
|
QList<quint32> lineFilterLutQ = _unsignedQntzrVec.toList(); |
|
|
|
this->_dsp->lineFilterCoefficient(lineFilterLutQ); |
|
|
|
} |
|
|
|
|
|
|
@ -497,9 +492,8 @@ void TrxBoard::setMetaData(const QByteArray metaData) const |
|
|
|
|
|
|
|
void TrxBoard::setDtgcLut(QVector<float>& dtgcLut) |
|
|
|
{ |
|
|
|
_signedQntzrVec.clear(); |
|
|
|
_signedQntzrVec = Calculation::qntzr(dtgcLut, 0, 12, 8, 0, true, false); |
|
|
|
QList<quint32> dtgcLutQ = signedVector2unsignedList(_signedQntzrVec); |
|
|
|
_unsignedQntzrVec = Calculation::qntzr(dtgcLut, 0, 12, 8, 0, true, false); |
|
|
|
QList<quint32> dtgcLutQ = _unsignedQntzrVec.toList(); |
|
|
|
this->_dsp->dtgcLut(dtgcLutQ); |
|
|
|
} |
|
|
|
|
|
|
|