#ifndef _COMPASS
#define _COMPASS 1

#include <time.h>

#define COMPASS_MSGTYPE 2

struct compass_msgbuf
{
  long mtype;
  time_t time_sec;
  suseconds_t time_usec;
  double heading;
  int mag[3];
};

struct compass_databuf
{
time_t time_sec;
suseconds_t time_usec;
double delta_t;
double heading;
};


void *compute_compass(void *threadid);





#endif

