From 22c4c0c2cf790d3cfb8d4d4ff502cf15a8e9f4d4 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Wed, 3 Jul 2002 20:02:57 +0000 Subject: [PATCH] Restored SET_ENC_RATIO command. --- acsApp/src/devMCB4B.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/acsApp/src/devMCB4B.c b/acsApp/src/devMCB4B.c index ca414ed..e600e91 100644 --- a/acsApp/src/devMCB4B.c +++ b/acsApp/src/devMCB4B.c @@ -93,6 +93,7 @@ static int MCB4B_table[] = { IMMEDIATE, /* SET_VELOCITY */ IMMEDIATE, /* SET_ACCEL */ IMMEDIATE, /* GO */ + IMMEDIATE, /* SET_ENC_RATIO */ INFO, /* GET_INFO */ MOVE_TERM, /* STOP_AXIS */ VELOCITY, /* JOG */ @@ -277,6 +278,13 @@ STATIC long MCB4B_build_trans(motor_cmnd command, double *parms, struct motorRec */ trans->state = IDLE_STATE; break; + case SET_ENC_RATIO: + /* + * The MCB4B does not have the concept of encoder ratio, ignore this + * command + */ + trans->state = IDLE_STATE; + 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