LSM303DLH Test Program for get angle.

Dependencies:   mbed

Fork of LSM303DLHTest by Toshihisa T

Committer:
cbelknap
Date:
Wed Mar 18 16:48:45 2015 +0000
Revision:
5:05d5e64e76f2
Parent:
3:f3796683b4c9
Get magnitude, acceleration and heading

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tosihisa 3:f3796683b4c9 1 #ifndef vector_h
tosihisa 3:f3796683b4c9 2 #define vector_h
tosihisa 3:f3796683b4c9 3 typedef struct vector
tosihisa 3:f3796683b4c9 4 {
tosihisa 3:f3796683b4c9 5 float x, y, z;
tosihisa 3:f3796683b4c9 6 } vector;
tosihisa 3:f3796683b4c9 7
tosihisa 3:f3796683b4c9 8 extern void vector_cross(const vector *a, const vector *b, vector *out);
tosihisa 3:f3796683b4c9 9 extern float vector_dot(const vector *a,const vector *b);
tosihisa 3:f3796683b4c9 10 extern void vector_normalize(vector *a);
tosihisa 3:f3796683b4c9 11 #endif