On May 13, 2007, at 5:01 PM, Hugo Sousa wrote:

Hi Fangming,

You don't have to wait for a readDone() to read the other, you can call both Reads because accelconfigp has an arbiter that prevents simultaneous access. It is also better that you call them both because that way the sensor is not turned off between the two readings, doubling your maximum sample frequency. That's 60Hz, not quite the 64Hz you want

This is correct; in T2, the best way to sample multiple sensors is to request all of them at once. In this case, "best" means "most power efficient" and "fastest." Basically, by issuing a bunch of parallel calls to the OS, you give it the flexibility to automatically schedule I/O as efficiently as possible.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to