Interface library for STMicro LSM303DLH 3-axis magnetometer w/ 3-axis acceleromter. Computes magnetic heading.
Fork of LSM303DLH by
vector.h
- Committer:
- hiarora
- Date:
- 2015-10-30
- Revision:
- 3:f79253ebb396
- Parent:
- 0:de767f4959ef
File content as of revision 3:f79253ebb396:
#ifndef vector_h #define vector_h typedef struct vector { float x, y, z; } vector; extern void vector_cross(const vector *a, const vector *b, vector *out); extern float vector_dot(const vector *a,const vector *b); extern void vector_normalize(vector *a); #endif