mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
faster acquisition for multidetector and angualr data merging independent of angular direction
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@156 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -123,9 +123,15 @@ float angle(int ichan, float encoder, float totalOffset, float conv_r, float cen
|
||||
|
||||
(void) tilt; /* to avoid warning: unused parameter */
|
||||
float ang;
|
||||
|
||||
|
||||
|
||||
ang=180./PI*(center*conv_r+atan((float)(ichan-center)*conv_r))+encoder+totalOffset+offset;
|
||||
|
||||
|
||||
cout <<"***" << offset << " " << ang << endl;
|
||||
|
||||
|
||||
return direction*ang;
|
||||
|
||||
}
|
||||
|
@ -126,6 +126,11 @@ float angle(int ichan, float encoder, float totalOffset, float conv_r, float cen
|
||||
|
||||
ang=180./PI*(center*conv_r+atan((float)(ichan-center)*conv_r))+encoder+totalOffset+offset;
|
||||
|
||||
|
||||
// printf("*** %f %f\n",offset,ang);
|
||||
|
||||
|
||||
|
||||
return direction*ang;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user