forked from epics_driver_modules/motorBase
backed out seq_pv* arg changes
This commit is contained in:
@@ -645,11 +645,7 @@ static int getEpicsMotorMoving(SS_ID ssId, struct UserVar *pVar)
|
||||
int result=0, mask=0x01;
|
||||
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvGet(ssId, pVar->epicsMotorDoneIndex[j], 0);
|
||||
#else
|
||||
seq_pvGet(ssId, pVar->epicsMotorDoneIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
if (pVar->epicsMotorDone[j] == 0) result |= mask;
|
||||
mask = mask << 1;
|
||||
}
|
||||
@@ -669,21 +665,13 @@ static int waitEpicsMotors(SS_ID ssId, struct UserVar *pVar)
|
||||
/* Get the current motor positions, post them */
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
pVar->motorCurrent[j] = pVar->epicsMotorPos[j];
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
epicsThreadSleep(POLL_INTERVAL);
|
||||
}
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
pVar->motorCurrent[j] = pVar->epicsMotorPos[j];
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -699,11 +699,7 @@ static int getEpicsMotorMoving(SS_ID ssId, struct UserVar *pVar)
|
||||
int result=0, mask=0x01;
|
||||
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvGet(ssId, pVar->epicsMotorDoneIndex[j], 0);
|
||||
#else
|
||||
seq_pvGet(ssId, pVar->epicsMotorDoneIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
if (pVar->epicsMotorDone[j] == 0) result |= mask;
|
||||
mask = mask << 1;
|
||||
}
|
||||
@@ -722,21 +718,13 @@ static int waitMotors(SS_ID ssId, struct UserVar *pVar)
|
||||
/* Get the current motor positions, post them */
|
||||
getMotorPositions(ssId, pVar, pVar->motorCurrent);
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
epicsThreadSleep(POLL_INTERVAL);
|
||||
}
|
||||
getMotorPositions(ssId, pVar, pVar->motorCurrent);
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
@@ -753,21 +741,13 @@ static int waitEpicsMotors(SS_ID ssId, struct UserVar *pVar)
|
||||
/* Get the current motor positions, post them */
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
pVar->motorCurrent[j] = pVar->epicsMotorPos[j];
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
epicsThreadSleep(POLL_INTERVAL);
|
||||
}
|
||||
for (j=0; j<pVar->numAxes; j++) {
|
||||
pVar->motorCurrent[j] = pVar->epicsMotorPos[j];
|
||||
#if LT_SEQ_VERSION(2,2)
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0);
|
||||
#else
|
||||
seq_pvPut(ssId, pVar->motorCurrentIndex[j], 0, DEFAULT_TIMEOUT);
|
||||
#endif
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user