fork for acc
Dependents: mbed_accelerometer
Fork of LSM303DLHC by
vector.h@5:762e7cfed86f, 2014-09-29 (annotated)
- Committer:
- jn80842
- Date:
- Mon Sep 29 08:51:35 2014 +0000
- Revision:
- 5:762e7cfed86f
- Parent:
- 0:de767f4959ef
tweak to work with frdm-kl25z
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 0:de767f4959ef | 1 | #ifndef vector_h |
shimniok | 0:de767f4959ef | 2 | #define vector_h |
shimniok | 0:de767f4959ef | 3 | typedef struct vector |
shimniok | 0:de767f4959ef | 4 | { |
shimniok | 0:de767f4959ef | 5 | float x, y, z; |
shimniok | 0:de767f4959ef | 6 | } vector; |
shimniok | 0:de767f4959ef | 7 | |
shimniok | 0:de767f4959ef | 8 | extern void vector_cross(const vector *a, const vector *b, vector *out); |
shimniok | 0:de767f4959ef | 9 | extern float vector_dot(const vector *a,const vector *b); |
shimniok | 0:de767f4959ef | 10 | extern void vector_normalize(vector *a); |
shimniok | 0:de767f4959ef | 11 | #endif |