Fix getRorationMatrix bug with 1 motor position.
This commit is contained in:
@@ -98,7 +98,7 @@ TransFormInfo Recon::getTransformationMatrix(Parser* aParser, const Matrix& aMot
|
|||||||
for(int i=0; i<maxMotorPosNum; ++i)
|
for(int i=0; i<maxMotorPosNum; ++i)
|
||||||
{
|
{
|
||||||
double rotation = movementsListReal.getData()[i];
|
double rotation = movementsListReal.getData()[i];
|
||||||
double distance = movementsListReal.getData()[i + 2];
|
double distance = movementsListReal.getData()[i + maxMotorPosNum];
|
||||||
transformationMatrixListData[16*i + 0] = cos(rotation*PI/180);
|
transformationMatrixListData[16*i + 0] = cos(rotation*PI/180);
|
||||||
transformationMatrixListData[16*i + 1] = sin(rotation*PI/180);
|
transformationMatrixListData[16*i + 1] = sin(rotation*PI/180);
|
||||||
transformationMatrixListData[16*i + 4] = -sin(rotation*PI/180);
|
transformationMatrixListData[16*i + 4] = -sin(rotation*PI/180);
|
||||||
@@ -279,8 +279,8 @@ CEInfo Recon::getCEInfo(Parser* aParser, const MeasurementInfo aInfo)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
double* ceData = new double[ceMeasuredLength];
|
double* ceData = new double[ceMeasuredLength * ceMeasuredPointer.getSize()];
|
||||||
std::copy(ceMeasuredData, ceMeasuredData + ceMeasuredLength, ceData);
|
std::copy(ceMeasuredData, ceMeasuredData + ceMeasuredLength * ceMeasuredPointer.getSize(), ceData);
|
||||||
ce = Matrix::fromRawData(ceData, ceMeasuredLength, ceMeasuredPointer.getSize());
|
ce = Matrix::fromRawData(ceData, ceMeasuredLength, ceMeasuredPointer.getSize());
|
||||||
}
|
}
|
||||||
if(aInfo.Bandpassundersampling)
|
if(aInfo.Bandpassundersampling)
|
||||||
|
|||||||
Reference in New Issue
Block a user