We need more information about your application, but I'm guessing you are reading one axis, and when you get the readDone() you read the other axis, right?
The accelerometer sensor has a warmup time of 17 ms (check AccelP.nc), that means that every time you do a Read.read() it takes 17 ms to turn it on and receive one reading. So the time for two readings (one X axis read and one Y axis read) can be 34ms and that value comes allows 30Hz sampling frequency, Try using the accelStream components to get that frequency sampling. Cheers Hugo On 5/12/07, Fangming Zhang < [EMAIL PROTECTED]> wrote:
Hi everyone, My hardwares are MIB520, MTS310, and MICAZ. The transmitting rate of MIB520 is 57.4Kbps, and that of MICAZ is 250Kbps. The platform is Tinyos2.0. My objective is getting sample frequency of 64Hz when I only need data of accelerometer data, X and Y axis. However, it shows we can only obtain about 31Hz in my test expriment. Does this limited my TinyOs2.0? Or, is there any methods could improve this result? Regards, Fangming _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
