LSM303DLH Test Program for get angle.

Dependencies:   mbed

Committer:
tosihisa
Date:
Sun May 06 05:30:44 2012 +0000
Revision:
4:3c677edffb13
Parent:
3:f3796683b4c9
cut space.

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