diff options
author | Thomas White <taw@physics.org> | 2023-09-12 16:11:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-09-12 16:50:50 +0200 |
commit | e84f8c67fbeca8d82633287032f8cb2a828f1b1a (patch) | |
tree | 60438cb9cf6996dc0ca962595a5e42edf25ded50 /tests | |
parent | 7a0e9f2bdab4d09b759ce66d2a0b91c7160cf53a (diff) |
Fix sense of panel rotations
Should always be a right-hand grip rotation around positive axis
direction.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gradient_check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gradient_check.c b/tests/gradient_check.c index c60a0588..001bff7a 100644 --- a/tests/gradient_check.c +++ b/tests/gradient_check.c @@ -72,18 +72,18 @@ int main(int argc, char *argv[]) #ifdef ROTATE_PANEL_X struct detgeom_panel *p = &image.detgeom->panels[0]; step = deg2rad(0.01); - rotate2d(&p->cnz, &p->cny, cz/p->pixel_pitch, cy/p->pixel_pitch, step); - rotate2d(&p->fsz, &p->fsy, 0, 0, step); - rotate2d(&p->ssz, &p->ssy, 0, 0, step); + rotate2d(&p->cny, &p->cnz, cy/p->pixel_pitch, cz/p->pixel_pitch, step); + rotate2d(&p->fsy, &p->fsz, 0, 0, step); + rotate2d(&p->ssy, &p->ssz, 0, 0, step); didsomething = 1; #endif #ifdef ROTATE_PANEL_Y struct detgeom_panel *p = &image.detgeom->panels[0]; step = deg2rad(0.01); - rotate2d(&p->cnx, &p->cnz, cx/p->pixel_pitch, cz/p->pixel_pitch, step); - rotate2d(&p->fsx, &p->fsz, 0, 0, step); - rotate2d(&p->ssx, &p->ssz, 0, 0, step); + rotate2d(&p->cnz, &p->cnx, cz/p->pixel_pitch, cx/p->pixel_pitch, step); + rotate2d(&p->fsz, &p->fsx, 0, 0, step); + rotate2d(&p->ssz, &p->ssx, 0, 0, step); didsomething = 1; #endif |