faster trig functions (namely atan or atan2)
Mauvai
Posts: 45
I have an atan2 trig function which is taking about 8ms to run - is this normal? It seems incredibly slow.
Is there a faster way to do this - can I access the lookup tables somehow?
Is there a faster way to do this - can I access the lookup tables somehow?
Comments
I would look into using CORDIC. http://forums.parallax.com/showthread.php/127241
Bean
dof_class.hdof_class.cppFull_AHRS.cpp
While we're at it, any idea to output a struct from the dof_class.output_variables function and assign it into a volatile version of the struct it outputs?