Is it possible to do more advanced math such as trigonometry (sin,cosine,tangent) with the micro-controller. If so how do you? I was reading in the help files about File Inclusion and how that will let you do sine and cosine with the <math.h> thing but I don’t know how to use that. Another thing I need to use is square root. (for Pythagoreans theorem or whatever:) ) Thanks.

Jeff

You must use math.h and you will need to read up on how to use it if you want to do this type of math.

But, you should try to avoid doing so frequently (or at all) as floating point math has a very negative effect of the loop time. You would be better off to make a look up table and interpolate between points.

Where can I read up on it?

Google ANSI C math.h

here is a start

http://www.phim.unibe.ch/comp_doc/c_manual/C/FUNCTIONS/funcref.htm#math

Also, please note that the compiler doesn’t support “printf” / “PrintToScreen” with floats.