version       mcpVersion="$Name: v6_6_16$|Nov 27 2012|20:44:05"  # MCP version
mjd           56474

initialTime   1372635995

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 1372635995 AZIMUTH
ms_off 1372635995 ALTITUDE
ms_off 1372635995 ROTATOR
ms_on 1372635995 AZIMUTH
ms_on 1372635995 ALTITUDE
ms_on 1372635995 ROTATOR
ms_off 1372636000 ALTITUDE
ms_off 1372636000 ROTATOR
ms_off 1372636000 AZIMUTH
ms_off 1372640739 AZIMUTH
UPDATE_ENCODER 1372640740 AZIMUTH 1  31077583  264         0
UPDATE_ENCODER 1372640740 AZIMUTH 2  31070107  6         0
ms_off 1372640741 ALTITUDE
UPDATE_ENCODER 1372640741 ALTITUDE 1  7740059  251         0
UPDATE_ENCODER 1372640741 ALTITUDE 2  7737278  889         0
ms_off 1372640743 ROTATOR
UPDATE_ENCODER 1372640743 ROTATOR 1  -10  0         0
UPDATE_ENCODER 1372640743 ROTATOR 2  -1161158393  0         0
ms_off 1372640763 AZIMUTH
UPDATE_ENCODER 1372640764 AZIMUTH 1  31077560  0         0
UPDATE_ENCODER 1372640764 AZIMUTH 2  31070042  0         0
ms_off 1372640765 ALTITUDE
UPDATE_ENCODER 1372640765 ALTITUDE 1  7738088  0         0
UPDATE_ENCODER 1372640765 ALTITUDE 2  7735514  0         0
ms_off 1372640767 ROTATOR
UPDATE_ENCODER 1372640767 ROTATOR 1  5360  0         0
UPDATE_ENCODER 1372640767 ROTATOR 2  -1161161130  0         0
ms_off 1372640774 AZIMUTH
ms_off 1372640774 ALTITUDE
ms_off 1372640775 ROTATOR
ms_on 1372640775 AZIMUTH
ms_on 1372640775 ALTITUDE
ms_on 1372640775 ROTATOR
ALT_FIDUCIAL 1372640798    3   11869553  11864118   11870115  11864870    44.516       -207    385714  0 0
SET_FIDUCIAL_ERROR 1372640798 ALTITUDE 1  -562
SET_FIDUCIAL_ERROR 1372640798 ALTITUDE 2  -752
ALT_FIDUCIAL 1372640807    4   15533524  15525594   15533519  15525787    58.381      -3055    385714  -562 -752
SET_FIDUCIAL_ERROR 1372640808 ALTITUDE 1  5
SET_FIDUCIAL_ERROR 1372640808 ALTITUDE 2  -193
ALT_FIDUCIAL 1372640818    5   19419260  19408680   19419263  19408807    73.808      -6224    385135  -557 -945
SET_FIDUCIAL_ERROR 1372640818 ALTITUDE 1  -3
SET_FIDUCIAL_ERROR 1372640818 ALTITUDE 2  -127
ALT_FIDUCIAL 1372640831    6   22828272  22815332   22828267  22815489    88.116      -9163    113158  -560 -1072
SET_FIDUCIAL_ERROR 1372640831 ALTITUDE 1  5
SET_FIDUCIAL_ERROR 1372640831 ALTITUDE 2  -157
ms_off 1372640838 AZIMUTH
ms_off 1372640838 ALTITUDE
ms_off 1372640838 ROTATOR
ms_off 1372641088 AZIMUTH
UPDATE_ENCODER 1372641088 AZIMUTH 1  31077585  0         0
UPDATE_ENCODER 1372641088 AZIMUTH 2  31070077  0         0
ms_off 1372641090 ALTITUDE
UPDATE_ENCODER 1372641090 ALTITUDE 1  23142692  -555         0
UPDATE_ENCODER 1372641090 ALTITUDE 2  23129429  -1229         0
ms_off 1372641091 ROTATOR
UPDATE_ENCODER 1372641092 ROTATOR 1  8392  0         0
UPDATE_ENCODER 1372641092 ROTATOR 2  -1161288118  0         0
ms_off 1372641096 AZIMUTH
ms_off 1372641096 ALTITUDE
ms_off 1372641096 ROTATOR
ms_on 1372641096 AZIMUTH
ms_on 1372641097 ALTITUDE
ms_on 1372641097 ROTATOR
ALT_FIDUCIAL 1372641105    6   22828272  22815332   22828187  22815129    88.769      -9297   -113914  0 0
SET_FIDUCIAL_ERROR 1372641105 ALTITUDE 1  85
SET_FIDUCIAL_ERROR 1372641105 ALTITUDE 2  203
ALT_FIDUCIAL 1372641119    5   19419260  19408680   19419250  19408564    77.270      -6935   -385273  85 203
SET_FIDUCIAL_ERROR 1372641119 ALTITUDE 1  10
SET_FIDUCIAL_ERROR 1372641119 ALTITUDE 2  116
ALT_FIDUCIAL 1372641129    4   15533524  15525594   15533435  15525415    61.604      -3717   -385714  95 319
SET_FIDUCIAL_ERROR 1372641129 ALTITUDE 1  89
SET_FIDUCIAL_ERROR 1372641129 ALTITUDE 2  179
ALT_FIDUCIAL 1372641138    3   11869553  11864118   11869553  11863983    47.758       -873   -385714  184 498
SET_FIDUCIAL_ERROR 1372641138 ALTITUDE 1  0
SET_FIDUCIAL_ERROR 1372641138 ALTITUDE 2  135
ms_off 1372641160 AZIMUTH
ms_off 1372641160 ALTITUDE
ms_off 1372641160 ROTATOR
