Added sleep to stop to make sure at least one poll happens and EPCIS knows the motor is moving
This commit is contained in:
@@ -863,7 +863,6 @@ asynStatus turboPmacAxis::stop(double acceleration) {
|
|||||||
done, this thread (which also runs move commands) is paused for twice the
|
done, this thread (which also runs move commands) is paused for twice the
|
||||||
idle poll period.
|
idle poll period.
|
||||||
*/
|
*/
|
||||||
pC_->forcedFastPolls();
|
|
||||||
unsigned int idlePollMicros =
|
unsigned int idlePollMicros =
|
||||||
(unsigned int)ceil(pC_->idlePollPeriod() * 1e6);
|
(unsigned int)ceil(pC_->idlePollPeriod() * 1e6);
|
||||||
usleep(2 * idlePollMicros);
|
usleep(2 * idlePollMicros);
|
||||||
|
|||||||
Reference in New Issue
Block a user