Math is math in C, there should be no differences in implementation. You do need to be aware that there is only minimal support for integer math on the controllers: ADD SUB MULT, and no floating point hardware. That's why I keep harping on fixed point arithmetic.
MS Ittipong Khemapech wrote: > I think so. You should begin with doing simple calculation and see if > you've got the right result. > > Good luck, > Ittipong > > > 2009/4/22 Abhishek Phadnis <[email protected] > <mailto:[email protected]>> > > hey > > looking for generic calculations like mean/median averaging etc..it > is implemented the same way as in C right??just wanted to take a > look though..my project is data fusion on motes.. > > > 2009/4/22 Ittipong Khemapech <[email protected] > <mailto:[email protected]>> > > Hi, > > If you have a look at BlinkToRadio, the number of sent packet is > incremented at the time of when the timer is fired. You should > be more specific about what sort of calculations you are looking > for? > > Thanks, > Ittipong > > > 2009/4/22 Abhishek Phadnis <[email protected] > <mailto:[email protected]>> > > hey all, > > thanks for all the help so far.. > just about ready to get started with the programming...could > someone please put up a sample program with any sort of > calculations > in it? none of the pre existing ones have any...need to have > a look at some such calculation before i start off.. > > thanks > > abhishek > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
