From 083919e9840b6bb400ec99df29c7f10bb7570e04 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Wed, 13 Jul 2011 21:49:28 +0000 Subject: [PATCH] Fixed problem with dividing poll rates by 1000 twice; removed copy of poll periods to object, that is already done in startPoller --- motorApp/ACRSrc/ACRMotorDriver.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/motorApp/ACRSrc/ACRMotorDriver.cpp b/motorApp/ACRSrc/ACRMotorDriver.cpp index fe4e9a33..07c09021 100644 --- a/motorApp/ACRSrc/ACRMotorDriver.cpp +++ b/motorApp/ACRSrc/ACRMotorDriver.cpp @@ -47,8 +47,6 @@ ACRController::ACRController(const char *portName, const char *ACRPortName, int ACRAxis *pAxis; static const char *functionName = "ACRController"; - idlePollPeriod_ = idlePollPeriod; - movingPollPeriod_ = movingPollPeriod; binaryInReg_ = 4096; binaryOutReg_ = 4097; @@ -84,7 +82,7 @@ ACRController::ACRController(const char *portName, const char *ACRPortName, int pAxis = new ACRAxis(this, axis); } - startPoller(movingPollPeriod/1000., idlePollPeriod/1000., 2); + startPoller(movingPollPeriod, idlePollPeriod, 2); }