Hi JDJ,

the constants represent 100ms multiples, i.e. original DIGITAL_SAMPLING_TIME is 10 seconds. You changed these to 99, 100 and 101 seconds with your experiment. What you want is 60 seconds (XXX_SAMPLING_TIME = 600), then you must write or wire some extra code to do the storing.

Hope this helps,

        Harri

At 12:26 PM 11/14/2005 -0600, Jeremiah D. Jazdzewski wrote:
If I want to change the mda300 sample rate in the xsensormda300m file, is this the code that I should be concerned with:

implementation
{
#define ANALOG_SAMPLING_TIME    90
#define DIGITAL_SAMPLING_TIME  100
#define MISC_SAMPLING_TIME     110

Is this in milliseconds, because if it is, it is really fast. The reason I ask, is because I edited the code to change the defined to 990, 1000, and 1010 respectively, and I got really sparadic packets incoming at very long intervals.

Please someone tell me the easiest way to use the mda300 to take samples at a set interval of say 1 min. and store it. I would really appreciate it. Right now, I am just looking at using a xsensormda300 mote with the mda300 and a base mote with tosbase. Is there a better way?

Thanks

JDJ
_______________________________________________
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

Reply via email to