version       mcpVersion="$Name: v6_6_18$|Feb 14 2014|00:10:08"  # MCP version
mjd           56851

initialTime   1405214593

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 1405214593 AZIMUTH
UPDATE_ENCODER 1405214594 AZIMUTH 1  31077186  0         0
UPDATE_ENCODER 1405214594 AZIMUTH 2  31069717  0         0
ms_off 1405214595 ALTITUDE
UPDATE_ENCODER 1405214596 ALTITUDE 1  7622903  -372         0
UPDATE_ENCODER 1405214596 ALTITUDE 2  7620224  -81         0
ms_off 1405214597 ROTATOR
UPDATE_ENCODER 1405214597 ROTATOR 1  2347  0         0
UPDATE_ENCODER 1405214597 ROTATOR 2  556867307  0         0
ms_off 1405214607 AZIMUTH
ms_off 1405214607 ALTITUDE
ms_off 1405214607 ROTATOR
ms_on 1405214607 AZIMUTH
ms_on 1405214607 ALTITUDE
ms_on 1405214607 ROTATOR
ALT_FIDUCIAL 1405214631    3   11869600  11864108   11869899  11864616    44.311       -165    385714  0 0
SET_FIDUCIAL_ERROR 1405214631 ALTITUDE 1  -299
SET_FIDUCIAL_ERROR 1405214631 ALTITUDE 2  -508
ALT_FIDUCIAL 1405214640    4   15533586  15525578   15533616  15525934    58.220      -3022    385713  -299 -508
SET_FIDUCIAL_ERROR 1405214640 ALTITUDE 1  -30
SET_FIDUCIAL_ERROR 1405214640 ALTITUDE 2  -356
ALT_FIDUCIAL 1405214650    5   19419312  19408660   19419305  19408981    74.013      -6266    385046  -329 -864
SET_FIDUCIAL_ERROR 1405214650 ALTITUDE 1  7
SET_FIDUCIAL_ERROR 1405214650 ALTITUDE 2  -321
ALT_FIDUCIAL 1405214664    6   22828312  22815324   22828261  22815534    88.321      -9205    113174  -322 -1185
SET_FIDUCIAL_ERROR 1405214664 ALTITUDE 1  51
SET_FIDUCIAL_ERROR 1405214664 ALTITUDE 2  -210
ms_off 1405214671 AZIMUTH
ms_off 1405214671 ALTITUDE
ms_off 1405214671 ROTATOR
ms_off 1405214675 AZIMUTH
ms_off 1405214675 ALTITUDE
ms_off 1405214675 ROTATOR
ms_on 1405214676 AZIMUTH
ms_on 1405214676 ALTITUDE
ms_on 1405214676 ROTATOR
AZ_FIDUCIAL 1405214691   21   27561596  27556410   27561613  27556482   107.312   -513673  0 0
SET_FIDUCIAL_ERROR 1405214691 AZIMUTH 1  -17
SET_FIDUCIAL_ERROR 1405214691 AZIMUTH 2  -72
AZ_FIDUCIAL 1405214699   20   23703580  23701000   23703561  23700979    92.290   -334851  -17 -72
SET_FIDUCIAL_ERROR 1405214699 AZIMUTH 1  19
SET_FIDUCIAL_ERROR 1405214699 AZIMUTH 2  21
ms_off 1405214706 ALTITUDE
ms_off 1405214706 ROTATOR
ms_off 1405214706 AZIMUTH
ms_off 1405214711 AZIMUTH
ms_off 1405214711 ALTITUDE
ms_off 1405214711 ROTATOR
ms_on 1405214711 AZIMUTH
ms_on 1405214711 ALTITUDE
ms_on 1405214711 ROTATOR
AZ_FIDUCIAL 1405214721   20   23703580  23701000   23703198  23700713    92.289    337419  2 -51
SET_FIDUCIAL_ERROR 1405214721 AZIMUTH 1  382
SET_FIDUCIAL_ERROR 1405214721 AZIMUTH 2  287
AZ_FIDUCIAL 1405214729   21   27561596  27556410   27561660  27556514   107.312    513674  384 236
SET_FIDUCIAL_ERROR 1405214729 AZIMUTH 1  -64
SET_FIDUCIAL_ERROR 1405214729 AZIMUTH 2  -104
ms_off 1405214741 ALTITUDE
ms_off 1405214741 ROTATOR
ms_off 1405214741 AZIMUTH
ms_off 1405214761 AZIMUTH
ms_off 1405214761 ALTITUDE
ms_off 1405214761 ROTATOR
ms_on 1405214761 AZIMUTH
ms_on 1405214761 ALTITUDE
ms_on 1405214761 ROTATOR
ALT_FIDUCIAL 1405214770    6   22828312  22815324   22828219  22815218    88.642      -9271   -114300  -271 -1395
SET_FIDUCIAL_ERROR 1405214770 ALTITUDE 1  93
SET_FIDUCIAL_ERROR 1405214770 ALTITUDE 2  106
ALT_FIDUCIAL 1405214783    5   19419312  19408660   19419275  19408371    76.822      -6843   -385273  -178 -1289
SET_FIDUCIAL_ERROR 1405214783 ALTITUDE 1  37
SET_FIDUCIAL_ERROR 1405214783 ALTITUDE 2  289
ALT_FIDUCIAL 1405214793    4   15533586  15525578   15533602  15525196    61.029      -3599   -385713  -141 -1000
SET_FIDUCIAL_ERROR 1405214793 ALTITUDE 1  -16
SET_FIDUCIAL_ERROR 1405214793 ALTITUDE 2  382
ALT_FIDUCIAL 1405214803    3   11869600  11864108   11869641  11863788    47.339       -787   -385714  -157 -618
SET_FIDUCIAL_ERROR 1405214803 ALTITUDE 1  -41
SET_FIDUCIAL_ERROR 1405214803 ALTITUDE 2  320
ms_off 1405214824 ALTITUDE
ms_off 1405214824 ROTATOR
ms_off 1405214824 AZIMUTH
