The value of Pi isn't included with math.h. You should just do something like:
#define PI 3.14.....Then you can just use the "PI" definition where needed.
Arduino.h already defines PI
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?