Revert movement listreal usage.
This commit is contained in:
@@ -89,6 +89,7 @@ TransFormInfo Recon::getTransformationMatrix(Parser* aParser, const Matrix& aMot
|
||||
{
|
||||
movementRealAvailable = false;
|
||||
}
|
||||
//movementRealAvailable=false;
|
||||
if(movementRealAvailable)
|
||||
{
|
||||
int maxMotorPosNum = motorPosList.getDimSize(0);
|
||||
@@ -98,7 +99,7 @@ TransFormInfo Recon::getTransformationMatrix(Parser* aParser, const Matrix& aMot
|
||||
for(int i=0; i<maxMotorPosNum; ++i)
|
||||
{
|
||||
double rotation = movementsListReal.getData()[i];
|
||||
double distance = movementsListReal.getData()[i + maxMotorPosNum];
|
||||
double distance = movementsListReal.getData()[i + aParser->getMetaData().getAperturePositionNumber()];
|
||||
transformationMatrixListData[16*i + 0] = cos(rotation*PI/180);
|
||||
transformationMatrixListData[16*i + 1] = sin(rotation*PI/180);
|
||||
transformationMatrixListData[16*i + 4] = -sin(rotation*PI/180);
|
||||
@@ -112,7 +113,7 @@ TransFormInfo Recon::getTransformationMatrix(Parser* aParser, const Matrix& aMot
|
||||
else
|
||||
{
|
||||
auto rotationMatrix = aParser->getMovementData().getRotationMatrix();
|
||||
size_t maxMotorPosNum = rotationMatrix.size();
|
||||
int maxMotorPosNum = motorPosList.getDimSize(0);
|
||||
double* transformationMatrixListData = new double[16*maxMotorPosNum];
|
||||
for(size_t i=0; i<maxMotorPosNum; ++i)
|
||||
{
|
||||
@@ -121,7 +122,6 @@ TransFormInfo Recon::getTransformationMatrix(Parser* aParser, const Matrix& aMot
|
||||
transformationMatrixList = Matrix::fromRawData(transformationMatrixListData, 4, 4, maxMotorPosNum);
|
||||
}
|
||||
result.rotationMatrix = transformationMatrixList;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user