Does anyone know what the refresh rate of the accelerometer in the wiimote is? Is there a way to find out using Visual C#?
+1
A:
Every 5.02 ms (~200Hz) according to this page (which has loads of great info on it, mostly in links to other articles).
Data from with tk.wii object is 8-bit data reported every 5.02 milliseconds on average (with a 4.90 median and 5.86 in one test). The data is represented as a 0.0-1.0 value the tilt of the controller occupying 21% of that range – tilt values for the X-and Y-axis range from 0.396 to 0.608 with sharp accelerations using the entire range.
It may depend not only upon the device's capabilities, but your connection to it.
Drew Noakes
2010-06-22 14:07:15
if my connection is the determining factor, how can I determine the refresh rate considering my connection in c#?
Omar
2010-06-22 14:13:55
The don't make milliseconds the way they used to. Back in my days, you could get 200 Hz for a 5 ms interval.
nikie
2010-06-22 14:14:47
Haha! Er, maybe lunar milliseconds... thanks, will update the answer.
Drew Noakes
2010-06-22 15:58:09
@Omar, can you count the number of updates you get per second? You can use `System.Diagnostics.Stopwatch` for decent precision timing.
Drew Noakes
2010-06-22 15:59:41