caclutate angle without using math.h lib functions

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am not sure if this is the place to post this question so let me know if I need to post it somewhere else.  I am interfacing an accelerometer with an 8k PSoC1 via i2c.  I need to cacluate a specific angle from the accelerometer data without using the <math.h> library.  I know the value of two sides and could use arctan to get that angle but when i include <math.h> I run out fo code space.  Is this a possibility?  If so how can I do this?

   


Thanks...

0 Likes
3 Replies