version       mcpVersion="$Name: v6_6_10$|Aug 26 2011|17:12:08"  # MCP version
mjd           55915

initialTime   1324382038

typedef enum {
   azimuth = 0,
   altitude = 1,
   rotator = 2,
} AXIS;

typedef struct {
   int time;
   int fididx;
   int true1;
   int true2;
   int pos1;
   int pos2;
   float deg;
   float alt_pos;
   float velocity;
   int encoder_error1;
   int encoder_error2;
} ALT_FIDUCIAL;

typedef struct {
   int time;
   int fididx;
   int true1;
   int true2;
   int pos1;
   int pos2;
   float deg;
   float velocity;
   int encoder_error1;
   int encoder_error2;
} AZ_FIDUCIAL;

typedef struct {
   int time;
   int fididx;
   int true1;
   int true2;
   int pos1;
   int pos2;
   float deg;
   int latch;
   float velocity;
   int encoder_error1;
   int encoder_error2;
} ROT_FIDUCIAL;

typedef struct {
   int time;
   AXIS axis;
} DEFINE_FIDUCIALS;

typedef struct {
   int time;
   AXIS axis;
   int encoder;
   int error;
} SET_FIDUCIAL_ERROR;

typedef struct {
   int time;
   char mcpVersion[100];
} START_FIDUCIAL;

typedef struct {
   int time;
   AXIS axis;
   int encoder;
   int pos1;
   int error;
   float velocity;
} UPDATE_ENCODER;

typedef struct {
   int time;
   AXIS axis;
   int correction;
} DISABLE_MS_CORRECTION;

typedef struct {
   int time;
   AXIS axis;
} MS_ON;

typedef struct {
   int time;
   AXIS axis;
} MS_OFF;

typedef struct {
   int time;
   int dio316;
} BAD_DIO316;

ms_off 1324382038 AZIMUTH
UPDATE_ENCODER 1324382039 AZIMUTH 1  31076807  0         0
UPDATE_ENCODER 1324382039 AZIMUTH 2  31069092  0         0
ms_off 1324382040 ALTITUDE
UPDATE_ENCODER 1324382041 ALTITUDE 1  7715034  -247         0
UPDATE_ENCODER 1324382041 ALTITUDE 2  7712379  -241         0
ms_off 1324382042 ROTATOR
UPDATE_ENCODER 1324382042 ROTATOR 1  -79  0         0
UPDATE_ENCODER 1324382042 ROTATOR 2  -1664856833  0         0
ms_off 1324382048 AZIMUTH
ms_off 1324382048 ALTITUDE
ms_off 1324382049 ROTATOR
ms_on 1324382049 AZIMUTH
ms_on 1324382049 ALTITUDE
ms_on 1324382049 ROTATOR
ms_off 1324382052 AZIMUTH
ms_off 1324382052 ALTITUDE
ms_off 1324382052 ROTATOR
