From 79b73f6f8b58243bf0aa2a7c956036dfdb7a8549 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Mon, 15 Dec 2014 15:04:13 +0000 Subject: [PATCH] Bug fix from Thierry Zamofing (PSI); acceleration was set to the same value as the speed. --- motorApp/ImsSrc/ImsMDrivePlusMotorAxis.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/motorApp/ImsSrc/ImsMDrivePlusMotorAxis.cpp b/motorApp/ImsSrc/ImsMDrivePlusMotorAxis.cpp index a842071a..72ee7560 100644 --- a/motorApp/ImsSrc/ImsMDrivePlusMotorAxis.cpp +++ b/motorApp/ImsSrc/ImsMDrivePlusMotorAxis.cpp @@ -9,6 +9,7 @@ // Revision History // ---------------- // 11-21-2011 NF Initial version +// 12-15-2014 RLS Bug fix from Thierry Zamofing (PSI); acceleration was set to the same value as the speed. #include #include @@ -135,7 +136,7 @@ asynStatus ImsMDrivePlusMotorAxis::setAxisMoveParameters(double minVelocity, dou // set accceleration if (acceleration != 0) { - sprintf(cmd, "A=%ld", (long)maxVelocity); + sprintf(cmd, "A=%ld", (long)acceleration); status = pController->writeController(cmd, IMS_TIMEOUT); if (status) goto bail; }