Implement speed parameter for 'fastscan' differential scan capability

r1633 | dcl | 2007-03-12 10:28:42 +1100 (Mon, 12 Mar 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-03-12 10:28:42 +11:00
parent f6bb48f9e1
commit 2245b5f48d

View File

@@ -493,6 +493,11 @@ static int SimGetPar(void *self, char *name, float *value)
*value = pDriv->fLower;
iSuccess=1;
}
if (0==strcmp("speed",name))
{
*value = pDriv->fSpeed;
iSuccess=1;
}
return iSuccess;
}
@@ -509,6 +514,8 @@ static void SimListPar(void *self, char *motorName, SConnection *pCon)
SCWrite(pCon,pBuffer,eValue);
sprintf(pBuffer,"%s.%s = %f",motorName,"hardlowerlim",pDriv->fLower);
SCWrite(pCon,pBuffer,eValue);
sprintf(pBuffer,"%s.%s = %f",motorName,"speed",pDriv->fSpeed);
SCWrite(pCon,pBuffer,eValue);
}
/*---------------------------------------------------------------------------*/