From 2bde41a49427fe10e4a2e7a72cf90dad9cf2358f Mon Sep 17 00:00:00 2001 From: Jim Kowalkowski Date: Fri, 29 Jan 1993 15:24:31 +0000 Subject: [PATCH] allow recalc of velo and accel each rec process --- src/rec/recSteppermotor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rec/recSteppermotor.c b/src/rec/recSteppermotor.c index 04cbf2640..5c568af11 100644 --- a/src/rec/recSteppermotor.c +++ b/src/rec/recSteppermotor.c @@ -88,6 +88,7 @@ * .30 07-16-92 jba added invalid alarm fwd link test and chngd fwd lnk to macro * .31 07-21-92 jba changed alarm limits for non val related fields * .32 10-10-92 jba replaced code for get of VAL from DOL with recGblGetLinkValue + * .33 01-05-93 jbk force recalc of velo and accel each time rec processed */ #include @@ -723,13 +724,14 @@ struct steppermotorRecord *psm; return; /* set the velocity and acceleration */ - if ((psm->velo != psm->lvel) || (psm->lacc != psm->accl)){ + /* jbk change for allowing mres to change */ +/* if ((psm->velo != psm->lvel) || (psm->lacc != psm->accl)){ */ acceleration = (1/psm->accl) * psm->velo * psm->mres; velocity = psm->velo * psm->mres; (*pdset->sm_command)(psm,SM_VELOCITY,velocity,acceleration); psm->lvel = psm->velo; psm->lacc = psm->accl; - } +/* } */ /* set home when requested */ if (psm->sthm != 0){