Bug fix from Thierry Zamofing (PSI); acceleration was set to the same value as the speed.

This commit is contained in:
Ron Sluiter
2014-12-15 15:04:13 +00:00
parent 5161400586
commit 79b73f6f8b
+2 -1
View File
@@ -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 <stddef.h>
#include <stdlib.h>
@@ -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;
}