diff --git a/hostcontrol/src/main.rs b/hostcontrol/src/main.rs index bdccb94..c46a734 100644 --- a/hostcontrol/src/main.rs +++ b/hostcontrol/src/main.rs @@ -83,10 +83,9 @@ fn main() { max_xy[2] = 0.0; for n in 0..10 { - stage - .move_absolute_cartesian(max_xy * n as f64 / 10.0) - .unwrap(); - store_image(n, origin, &args.output_directory, &cam.capture().unwrap()); + let pos = max_xy * n as f64 / 10.0; + stage.move_absolute_cartesian(pos).unwrap(); + store_image(n, pos, &args.output_directory, &cam.capture().unwrap()); } }