From a281ac64d1f0f8960a424a961bffc5ba1d9bd085 Mon Sep 17 00:00:00 2001 From: Matthew Player <31096650+MatthewPlayer@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:21:59 +0100 Subject: [PATCH] Fix Scientifica device adapter- Motion 2 device Y moves moving incorrect distance Fix bug where using the Scientifica device adapter with Motion 2 racks, Y axis moves would move 10 times less than they should. --- DeviceAdapters/Scientifica/Scientifica.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DeviceAdapters/Scientifica/Scientifica.cpp b/DeviceAdapters/Scientifica/Scientifica.cpp index 504056e97..d6603cdf4 100644 --- a/DeviceAdapters/Scientifica/Scientifica.cpp +++ b/DeviceAdapters/Scientifica/Scientifica.cpp @@ -141,6 +141,7 @@ int XYStage::Initialize() if (baud == 9600) { stepSizeXUm_ = 0.1; + stepSizeYUm_ = 0.1; // Step size pAct = new CPropertyAction(this, &XYStage::OnStepSizeX); CreateProperty("StepSizeX_um", "0.1", MM::Float, true, pAct); @@ -151,6 +152,7 @@ int XYStage::Initialize() else { stepSizeXUm_ = 0.01; + stepSizeYUm_ = 0.01; // Step size pAct = new CPropertyAction(this, &XYStage::OnStepSizeX); CreateProperty("StepSizeX_um", "0.01", MM::Float, true, pAct);