aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-07-17 02:09:01 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commita0ceccce4b7d561c2c72e79b6edf568bc12d5dc9 (patch)
tree321dcb3035b70b7872db8bfb4fe84916e1ef097a /src
parent2a9e6c1e5eb3a32ead90db92759d1dbc2cee00bc (diff)
No overall camera length shift
Diffstat (limited to 'src')
-rw-r--r--src/align_detector.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/align_detector.c b/src/align_detector.c
index 19907edb..4fe19732 100644
--- a/src/align_detector.c
+++ b/src/align_detector.c
@@ -161,7 +161,12 @@ int main(int argc, char *argv[])
int f = (groups[i].hierarchy_level > level) ? -1 : 0;
fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_TX), f);
fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_TY), f);
- fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_TZ), f);
+ if ( groups[i].hierarchy_level > 0 ) {
+ fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_TZ), f);
+ } else {
+ /* No overall camera length change */
+ fprintf(fh, "%i 0 -1\n", mille_label(groups[i].serial, GPARAM_DET_TZ));
+ }
fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_RX), f);
fprintf(fh, "%i 0 %i\n", mille_label(groups[i].serial, GPARAM_DET_RY), f);
if ( groups[i].hierarchy_level > 0 ) {