caclutate angle without using math.h lib functions | Cypress Semiconductor
caclutate angle without using math.h lib functions
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?