Interface library for STMicro LSM303DLH 3-axis magnetometer w/ 3-axis acceleromter. Computes magnetic heading.

Fork of LSM303DLH by Michael Shimniok

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vector.h Source File

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