version       mcpVersion="$Name: v6_6_17$|Nov 18 2013|20:23:40"  # MCP version
mjd           56647

initialTime   1387558379

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;

AZ_FIDUCIAL 1387558379   24   39156112  39142948   39156306  39143081   152.456   -256871  0 0
AZ_FIDUCIAL 1387558390   23   35271000  35260536   35271375  35260813   137.330   -349994  0 0
AZ_FIDUCIAL 1387558402   22   31414400  31406592   31414730  31406862   122.314   -183122  0 0
ALT_FIDUCIAL 1387558509    6   22828312  22815324   22828182  22815109    89.105      -9366   -125941  -135 -223
ALT_FIDUCIAL 1387558521    5   19419312  19408660   19419125  19408375    76.374      -6751   -350009  -135 -223
ALT_FIDUCIAL 1387558532    4   15533586  15525578   15533402  15525316    62.115      -3822   -350009  -135 -223
ALT_FIDUCIAL 1387558543    3   11869600  11864108   11869462  11863948    47.821       -886   -350009  -135 -223
ms_off 1387590920 AZIMUTH
ms_off 1387590921 ALTITUDE
ms_off 1387590921 ROTATOR
SET_FIDUCIAL_ERROR 1387590921 AZIMUTH 1  -330
SET_FIDUCIAL_ERROR 1387590921 AZIMUTH 2  -270
ms_on 1387590921 AZIMUTH
SET_FIDUCIAL_ERROR 1387590921 ALTITUDE 1  138
SET_FIDUCIAL_ERROR 1387590921 ALTITUDE 2  160
ms_on 1387590921 ALTITUDE
SET_FIDUCIAL_ERROR 1387590921 ROTATOR 1  243
SET_FIDUCIAL_ERROR 1387590921 ROTATOR 2  0
ms_on 1387590921 ROTATOR
ms_off 1387590925 AZIMUTH
ms_off 1387590925 ALTITUDE
ms_off 1387590925 ROTATOR
