3 Replies Latest reply on Jan 5, 2014 6:29 AM by ki.leung

    caclutate angle without using math.h lib functions

    ben.hill

      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...