Show Posts
Pages: [1]
1  Topics / Robotics / Re: Inverse trig functions on: April 06, 2013, 04:23:03 pm
The value of Pi isn't included with math.h.  You should just do something like:
Code:
#define PI 3.14.....
Then you can just use the "PI" definition where needed.

Arduino.h already defines PI

OK

I changed pi to PI and it compiled OK

I'm waiting for hardware to test it out.

Anyone know where I can get 20-25 servos for under $100?
2  Topics / Robotics / Re: Inverse trig functions on: April 05, 2013, 02:54:20 pm
Ok cool

Rewrote my arcsin() as asin and that compiled fine.


Including the conversion formula for radians to degrees didn't work so well.

The value pi is apparently not included in the package.

Should I just use "3.14159265358979323846" or is there some other way?


Thanks
3  Topics / Robotics / Inverse trig functions on: April 04, 2013, 04:40:54 pm
They locked this topic away in the arcives, so I'll just do this:


http://arduino.cc/forum/index.php?PHPSESSID=99fdf9fb9ed775fd5c50e3e70f03aec8&topic=41402.0


I need the <math.h> library and I can't find the .h and .ccp files.
Or if you could just tell me how to get the arc functions that would work too.

Thanks.
Pages: [1]