Interface library for STMicro LSM303DLH 3-axis magnetometer w/ 3-axis acceleromter. Computes magnetic heading.
vector.h
00001 #ifndef vector_h 00002 #define vector_h 00003 typedef struct vector 00004 { 00005 float x, y, z; 00006 } vector; 00007 00008 extern void vector_cross(const vector *a, const vector *b, vector *out); 00009 extern float vector_dot(const vector *a,const vector *b); 00010 extern void vector_normalize(vector *a); 00011 #endif
Generated on Sat Jul 16 2022 21:50:22 by 1.7.2