microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
37 stars 27 forks source link

Mosaic behaves strangely if you change objective. #826

Closed iandobbie closed 2 years ago

iandobbie commented 2 years ago

If you start a mosaic, pause it, change objective and then continue, the mosaic behaves in an unexpected manner.

The iterator that does the mosaic means the stage goes to the same number of fields of view in x and y from the initial position, which will be different from the current position. I will be closer to the original start for a higher mag and further away for a lower mag.

I suggest that changing the objective should cancel the existing mosaic so starting a mosaic will just start from the current position.

iandobbie commented 2 years ago

Fixed by commit above