- Fixes to slsmagnet
- First working version of the new SINQHM http driver
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user