motion is OK if motor has no absolute encoder

r1844 | dcl | 2007-04-10 10:17:01 +1000 (Tue, 10 Apr 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-04-10 10:17:01 +10:00
parent 466e1bf4a9
commit 7363a846e1

View File

@@ -994,6 +994,9 @@ static int checkMotion(void *pData) {
pDMC2280Driv self;
self = (pDMC2280Driv)pData;
assert(self != NULL);
/* we can only test if there is an absolute encoder */
if (!self->abs_endcoder)
return 1;
if (self->time_lastPos_set.tv_sec == 0) {
/* first time - initialise the data */
if (FAILURE == readMotion(self, &steps, &counts))