MS plugin: fixed a bug in calculation of the motor positions in txt files.

This commit is contained in:
2020-02-17 13:38:26 +01:00
parent e865a60866
commit bec1f44322

View File

@@ -409,7 +409,7 @@ while(repeatFlag == 1) {
}
//Y position of each of the other volumes in stage coords
for (l = 1; l<ScansInY[0]; l++) {
centresYreal[l] = centresYreal[l-1] - ScansInY[1];
centresYreal[l] = centresYreal[l-1] + ScansInY[1];
if (abs(centresYreal[l]) < 0.001) {centresYreal[l] = 0;} //avoid extremely low exponential values
}