From 4e4936cd7f9c8f0ad54e58ec98aeb3ce6fe27223 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Wed, 3 Jul 2002 21:13:52 +0000 Subject: [PATCH] Restored SET_ENC_RATIO command. --- motorApp/MclennanSrc/devPM304.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/motorApp/MclennanSrc/devPM304.c b/motorApp/MclennanSrc/devPM304.c index e8880b8d..7ac8f425 100644 --- a/motorApp/MclennanSrc/devPM304.c +++ b/motorApp/MclennanSrc/devPM304.c @@ -99,6 +99,7 @@ static int PM304_table[] = { IMMEDIATE, /* SET_VELOCITY */ IMMEDIATE, /* SET_ACCEL */ IMMEDIATE, /* GO */ + IMMEDIATE, /* SET_ENC_RATIO */ INFO, /* GET_INFO */ MOVE_TERM, /* STOP_AXIS */ VELOCITY, /* JOG */ @@ -266,6 +267,12 @@ STATIC long PM304_build_trans(motor_cmnd command, double *parms, struct motorRec * does nothing */ break; + case SET_ENC_RATIO: + /* + * The PM304 does not have the concept of encoder ratio, ignore this + * command + */ + break; case GET_INFO: /* These commands are not actually done by sending a message, but rather they will indirectly cause the driver to read the status