- Made the HRPT temperature log lmd200 work

- Added a special el734hp which scales with 1000 for SANSLI
- Added another error to the magnet driver: magnet broken
This commit is contained in:
koennecke
2008-05-08 09:29:48 +00:00
parent 358c121b30
commit 5e96ae6939
7 changed files with 155 additions and 35 deletions

View File

@ -675,6 +675,31 @@ MotorDriver *CreateEL734HP(SConnection *pCon, int argc, char *argv[]){
SCWrite(pCon,pError,eError);
return (MotorDriver *)pNew;
}
/*================ a 1000 scaled motor for SANSLI =================*/
static int EL734TRun(void *pData,float fValue){
return EL734Run(pData, fValue*1000);
}
/*-----------------------------------------------------------------*/
static int EL734TGetPos(void *pData, float *fPos){
int status;
status = EL734GetPos(pData, fPos);
*fPos /= 1000;
return status;
}
/*-------------------------------------------------------------------*/
MotorDriver *CreateEL734HPT(SConnection *pCon, int argc,
char *argv[]){
MotorDriver *pDriv = NULL;
pDriv = CreateEL734HP(pCon,argc,argv);
if(pDriv != NULL){
pDriv->GetPosition = EL734TGetPos;
pDriv->RunTo = EL734TRun;
pDriv->fLower /= 1000.;
pDriv->fUpper /= 1000.;
}
return pDriv;
}