Quote:
Originally Posted by tluks
I'd describe just a little differently. I don't think it has to do with the variable initialization. It is more like every other "new'ed" encoder's getRate method doesn't work right. So you have to new one and throw it away, to new the next one which will work. It is like something in the construction of one encoder has side effects that impact the construction of the next one.
|
Hmm, maybe it has something to do with the channels the encoders use and how they are programmed to be used? I kind of see it as you are making a "space" or else there will be a conflict like possibly of an address being taken by one encoder from another.
Unless, you are implying that it is a problem with the program to receive data.