- 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:
25
el734hp.c
25
el734hp.c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user