View Full Version : The Math of the Cordic Object

11-17-2010, 08:56 AM
Hi All,

I am trying to figure out the math being performed in the Cordic Object by Beau Schwabe

In the object for the H48C Tri-Axis accelerometer Beau uses the Cordic calculations
to calculate ThetaA,B,C from the g-forces on the X-Y-Z axis.

This is the address for the object http://obex.parallax.com/objects/178/

I am trying to figure out what is the math being used .....
1- What does the Cordic object do?
2- How is the ThetaA/B/C being calculated from the z/x/y g-force readings? What
are the math formulas?

Can anyone please point me to the right place for the formulas?


11-17-2010, 11:53 AM
check http://en.wikipedia.org/wiki/CORDIC

It is a good start, has links to examples and other documentation.

Otherwise here: http://www.jacques-laporte.org/HP%2035%20Saga.htm

Searching the forum you'll find other stuff, and also a spin only atan2 version.


11-17-2010, 02:26 PM
Laporte's site is great ! I also recommend it, specially because all calculations are in decimal and thus easier than their binary counterparts :)