nesc/TOS is basically C with a few added useful features and
a bunch of extra obsfucation...the latter being my opinion.
So mostly what you can do in C you can do on a mote.
But you need to remember that you are working on a Controller,
not a Computer. There is limited memory, in the K's not M's,
little or no memory-management, no floating point hardware,
and clock speeds in the M's not G's.
If you have some favorite matrix package that links with C
you should be able to compile and link it with your TOS program.
Look back through the help list for discussions of including code
and using external C modules. I would recommend that you use int
or fixed point math, and not too much of it though.
MS
Yupeng Liang wrote:
Hi All,
I have a basic question about doing vector operation on Tmote sky motes:
(1) Can we store data into vectors or arrays? If yes, how? And where to
look up? Same as in C?
(2) Can we do vector multiplications directly?
(3) Can we define "for" loops in TinyOS? If yes, how? same as in C?
Thank you very much!
- Yupeng
------------------------------------------------------------------------
_______________________________________________
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