Added support for three detector banks for FOCUS

This commit is contained in:
cvs
2000-03-03 15:51:05 +00:00
parent 499af28298
commit 4cf814d179
16 changed files with 1591 additions and 135 deletions

View File

@ -49,12 +49,26 @@
self = (pLin2Ang)pData;
assert(self);
if(iID == DRIVEID)
{
return self->pDriv;
}
return NULL;
}
/*----------------------------------------------------------------------*/
static int Lin2AngSave(void *pData, char *name, FILE *fd)
{
pLin2Ang self = NULL;
self = (pLin2Ang)pData;
if(!self)
return;
fprintf(fd,"%s.length %f\n",name, self->length);
return 1;
}
/*-----------------------------------------------------------------------*/
static int L2AHalt(void *pData)
{
@ -181,6 +195,7 @@
/* initialize the data structure */
pNew->pDes->GetInterface = Lin2AngGetInterface;
pNew->pDes->SaveStatus = Lin2AngSave;
pNew->pDriv->Halt = L2AHalt;
pNew->pDriv->CheckLimits = L2ALimits;
pNew->pDriv->SetValue = L2ASetValue;