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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user