[Tinyos-help] changing the sampling frequency for the magnometer sensor on a mica2 mote

2006-12-06 Thread Chris Byers
I have been given the task to change the sampling frequency on the mica2 mote for the magnometer sensor. I have not used the motes before nor have I done programming in nesC. I have been looking through onlint tutorials and been trying to get an idea of how I should do this and so far I believe t

Re: [Tinyos-help] changing the sampling frequency for the magnometer sensor on a mica2 mote

2006-12-06 Thread Tony Han
Hi Chris, I am not sure what exactly you want to do, if you want to increase the sampling rate by increasing the data transmit rate, you can go to XSensorMTS300, find out "call Timer.start(TIMER_REPEAT, 1000);" and change that 1000 number to a smaller number. 1000 means 1 sample per second. Als

Re: [Tinyos-help] changing the sampling frequency for the magnometer sensor on a mica2 mote

2006-12-06 Thread Michael Schippling
Knowing what program you are using to sample would be somewhat helpful... Probably it is some version of Oscilloscope, where the samples are driven by a repeating Timer, so you'll want to look for a line like: call Timer.start(TIMER_REPEAT, 125); where the second arg is the number of (loosel