Jump to content
Sign in to follow this  

Compute float number in msp430g2

Recommended Posts

Hi everyone,

I use the following function to compute the angle from accelerometer:

float a =atan2f(-0.143798828, -0.680053711);

But it can not return a proper result (a huge number ~10^22).

How I can compute the angle directly on the chip. (I used CCS IDE).


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this