- Fixes to slsmagnet

- First working version of the new SINQHM http driver
This commit is contained in:
koennecke
2006-01-27 11:34:19 +00:00
parent 0f22d2b0fa
commit db7c193ed5
4 changed files with 73 additions and 22 deletions

View File

@@ -194,7 +194,11 @@ int ECBMOTGetPos(void *pData, float *fPos){
if((int)ObVal(self->driverPar,ENCODER) > 0){
status = readEncoder(self, &digits);
*fPos = digits/ObVal(self->driverPar,DEG2STEP) -
step2degree = ObVal(self->driverPar,DEG2STEP);
if(step2degree == 0.0){
step2degree = 1;
}
*fPos = (digits/step2degree) -
ObVal(self->driverPar,OFFSET);
return status;
} else {