Toshihisa T
/
LSM303DLHTest
LSM303DLH Test Program for get angle.
LSM303DLH/vector.h@3:f3796683b4c9, 2012-05-06 (annotated)
- Committer:
- tosihisa
- Date:
- Sun May 06 05:14:30 2012 +0000
- Revision:
- 3:f3796683b4c9
An angle of inclination is obtained using an accelerometer.
Who changed what in which revision?
User | Revision | Line number | New 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 |