From 9e10a289f5d7e0dae933489486541dea7938e45a Mon Sep 17 00:00:00 2001 From: jsullivan-anl Date: Mon, 28 Feb 2011 15:32:09 +0000 Subject: [PATCH] change velocity commands to account for Mdrive 3.x changes --- motorApp/ImsSrc/devMDrive.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/motorApp/ImsSrc/devMDrive.cc b/motorApp/ImsSrc/devMDrive.cc index 77229598..20a54dae 100644 --- a/motorApp/ImsSrc/devMDrive.cc +++ b/motorApp/ImsSrc/devMDrive.cc @@ -42,6 +42,7 @@ Last Modified: $Date: 2008-03-14 20:10:01 $ * MDrive_build_trans(). * .05 09/20/04 rls remove '?' command string padding. * .06 04/06/05 rls Bug fix for not setting accel = decel. + * .07 01/28/11 jps MDrive Release 3.x requires an '=' on velocity commands. */ #include @@ -251,11 +252,11 @@ STATIC RTN_STATUS MDrive_build_trans(motor_cmnd command, double *parms, struct m break; case SET_VEL_BASE: - sprintf(buff, "VI %d", intval); + sprintf(buff, "VI=%d", intval); break; case SET_VELOCITY: - sprintf(buff, "VM %d", intval); + sprintf(buff, "VM=%d", intval); break; case SET_ACCEL: