|
Post by Frisbone on Aug 28, 2015 19:08:17 GMT -5
Had an issue finding the library even when the LD_LIBRARY_PATH was set correctly. ldd said everything was ok, but running ITC resulted in a shared library could not be found error.
Running sudo ldconfig -v solved the problem for me.
|
|
|
Post by Frisbone on Aug 31, 2015 20:30:48 GMT -5
I've discovered that the average time it takes to check a read and read IMU data is 2300 microseconds (2.3ms). So the theoretical max poll rate for pi would be around 400Hz. However, this gives me a good idea of how to fit this processing around existing ITC processing requirements.
I am a little concerned though over the sensitivity there is on the polling requirement (too slow and things hang up, too fast and it seems that it speeds up the likelihood of garbage data entering in). When we are simulating an ISR we are doing it within the main thread and we are combining the PWM handling (which happens at a slower rate) - so the reality is that unless we put the software ISR in a separate higher-priority thread there is always the guarantee that occasional output PWM processing is going to bust the next expected read time. If this is what triggers the malfunctioning then we are likely to see the problem often (which may be why I had so much weirdness before I started commenting out code).
|
|