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

initialTime   1393368391

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 1393368391 AZIMUTH
UPDATE_ENCODER 1393368391 AZIMUTH 1  31077182  0         0
UPDATE_ENCODER 1393368391 AZIMUTH 2  31069800  0         0
ms_off 1393368393 ALTITUDE
UPDATE_ENCODER 1393368393 ALTITUDE 1  7627590  -265         0
UPDATE_ENCODER 1393368393 ALTITUDE 2  7624942  -142         0
ms_off 1393368394 ROTATOR
UPDATE_ENCODER 1393368395 ROTATOR 1  7002  0         0
UPDATE_ENCODER 1393368395 ROTATOR 2  1606583108  0         0
ms_off 1393368420 AZIMUTH
ms_off 1393368420 ALTITUDE
ms_off 1393368421 ROTATOR
ms_on 1393368421 AZIMUTH
ms_on 1393368421 ALTITUDE
ms_on 1393368421 ROTATOR
ROT_FIDUCIAL 1393368429  -78   40188488  42592480   40618838 1646591558     3.664   40188474    228000  0 0
ROT_FIDUCIAL 1393368431   77   40989264  42592336   40989225 1646591803     5.857   40618838    288167  0 0
SET_FIDUCIAL_ERROR 1393368431 ROTATOR 1  39
SET_FIDUCIAL_ERROR 1393368431 ROTATOR 2  0
ROT_FIDUCIAL 1393368432  -77   40989264  42592336   41418870 1646592183     8.401   40989225    334725  39 0
ROT_FIDUCIAL 1393368433   76   41790048  42590936   41790043 1646592419    10.599   41418870    337778  39 0
SET_FIDUCIAL_ERROR 1393368433 ROTATOR 1  5
SET_FIDUCIAL_ERROR 1393368433 ROTATOR 2  0
ROT_FIDUCIAL 1393368434  -76   41790048  42590936   42218837 1646592702    13.138   41790043    337778  44 0
ROT_FIDUCIAL 1393368436   75   42590828  42590828   42590829 1646592926    15.340   42218837    337778  44 0
SET_FIDUCIAL_ERROR 1393368436 ROTATOR 1  -1
SET_FIDUCIAL_ERROR 1393368436 ROTATOR 2  0
ROT_FIDUCIAL 1393368437  -75   42590828  42590828   43018816 1646593115    17.875   42590829    337778  43 0
ROT_FIDUCIAL 1393368438   74   43391608  42590824   43391616 1646593386    20.082   43018816    337778  43 0
SET_FIDUCIAL_ERROR 1393368438 ROTATOR 1  -8
SET_FIDUCIAL_ERROR 1393368439 ROTATOR 2  0
ROT_FIDUCIAL 1393368442  -73   44192396  42590920   44618750 1646594105    27.348   44192379    193083  35 0
ALT_FIDUCIAL 1393368444    3   11869600  11864108   11869696  11864373    43.961        -93    385713  0 0
SET_FIDUCIAL_ERROR 1393368444 ALTITUDE 1  -96
SET_FIDUCIAL_ERROR 1393368444 ALTITUDE 2  -265
ROT_FIDUCIAL 1393368445   72   44993180  42590872   44993121 1646594525    29.565   44618750     76180  35 0
SET_FIDUCIAL_ERROR 1393368445 ROTATOR 1  59
SET_FIDUCIAL_ERROR 1393368445 ROTATOR 2  0
ALT_FIDUCIAL 1393368454    4   15533586  15525578   15533502  15525721    59.656      -3317    385713  -96 -265
SET_FIDUCIAL_ERROR 1393368454 ALTITUDE 1  84
SET_FIDUCIAL_ERROR 1393368454 ALTITUDE 2  -143
ALT_FIDUCIAL 1393368464    5   19419312  19408660   19419235  19408797    73.633      -6188    385100  -12 -408
SET_FIDUCIAL_ERROR 1393368464 ALTITUDE 1  77
SET_FIDUCIAL_ERROR 1393368464 ALTITUDE 2  -137
ALT_FIDUCIAL 1393368477    6   22828312  22815324   22828176  22815351    88.370      -9215    113137  65 -545
SET_FIDUCIAL_ERROR 1393368477 ALTITUDE 1  136
SET_FIDUCIAL_ERROR 1393368477 ALTITUDE 2  -27
ms_off 1393368484 ALTITUDE
ms_off 1393368484 ROTATOR
ms_off 1393368484 AZIMUTH
ms_off 1393368508 AZIMUTH
ms_off 1393368508 ALTITUDE
ms_off 1393368508 ROTATOR
ms_on 1393368508 AZIMUTH
ms_on 1393368509 ALTITUDE
ms_on 1393368509 ROTATOR
AZ_FIDUCIAL 1393368515   22   31414400  31406592   31414282  31406693   122.312    186207  0 0
SET_FIDUCIAL_ERROR 1393368515 AZIMUTH 1  118
SET_FIDUCIAL_ERROR 1393368515 AZIMUTH 2  -101
ROT_FIDUCIAL 1393368516  -72   44993180  42590872   44618634 1646610151    27.347   44993016   -194486  94 0
ROT_FIDUCIAL 1393368518   73   44192396  42590920   44192254 1646610565    24.823   44618634   -272333  94 0
SET_FIDUCIAL_ERROR 1393368518 ROTATOR 1  142
SET_FIDUCIAL_ERROR 1393368518 ROTATOR 2  0
ROT_FIDUCIAL 1393368519  -73   44192396  42590920   43818807 1646611094    22.611   44192254   -323325  236 0
ROT_FIDUCIAL 1393368521   74   43391608  42590824   43391611 1646611609    20.082   43818807   -337778  236 0
SET_FIDUCIAL_ERROR 1393368521 ROTATOR 1  -3
SET_FIDUCIAL_ERROR 1393368521 ROTATOR 2  0
ROT_FIDUCIAL 1393368522  -74   43391608  42590824   43018810 1646611897    17.875   43391611   -337778  233 0
ROT_FIDUCIAL 1393368523   75   42590828  42590828   42590831 1646612455    15.340   43018810   -337778  233 0
SET_FIDUCIAL_ERROR 1393368523 ROTATOR 1  -3
SET_FIDUCIAL_ERROR 1393368523 ROTATOR 2  0
ROT_FIDUCIAL 1393368524  -75   42590828  42590828   42218832 1646612923    13.138   42590831   -337778  230 0
BAD_DIO316 1393368526 10
ROT_FIDUCIAL 1393368528   77   40989264  42592336   40989259 1646614152     5.857   41418862   -287639  230 0
SET_FIDUCIAL_ERROR 1393368528 ROTATOR 1  5
SET_FIDUCIAL_ERROR 1393368529 ROTATOR 2  0
ROT_FIDUCIAL 1393368529  -77   40989264  42592336   40618884 1646614677     3.664   40989259   -226944  235 0
ROT_FIDUCIAL 1393368532   78   40188488  42592480   40188500 1646615338     1.116   40618884   -124027  235 0
SET_FIDUCIAL_ERROR 1393368532 ROTATOR 1  -12
SET_FIDUCIAL_ERROR 1393368532 ROTATOR 2  0
ms_off 1393368535 AZIMUTH
ms_off 1393368535 ALTITUDE
ms_off 1393368535 ROTATOR
ms_off 1393368558 AZIMUTH
ms_off 1393368558 ALTITUDE
ms_off 1393368558 ROTATOR
ms_on 1393368559 AZIMUTH
ms_on 1393368560 ALTITUDE
ms_on 1393368560 ROTATOR
AZ_FIDUCIAL 1393368567   23   35271000  35260536   35271462  35260944   137.330   -311736  118 -101
SET_FIDUCIAL_ERROR 1393368567 AZIMUTH 1  -462
SET_FIDUCIAL_ERROR 1393368567 AZIMUTH 2  -408
AZ_FIDUCIAL 1393368578   22   31414400  31406592   31414269  31406398   122.312   -184279  -344 -509
SET_FIDUCIAL_ERROR 1393368578 AZIMUTH 1  131
SET_FIDUCIAL_ERROR 1393368578 AZIMUTH 2  194
ms_off 1393368581 AZIMUTH
ms_off 1393368581 ALTITUDE
ms_off 1393368582 ROTATOR
ms_off 1393368869 AZIMUTH
UPDATE_ENCODER 1393368869 AZIMUTH 1  31077289  -213         0
UPDATE_ENCODER 1393368869 AZIMUTH 2  31069707  -315         0
ms_off 1393368870 ALTITUDE
UPDATE_ENCODER 1393368871 ALTITUDE 1  23143734  201         0
UPDATE_ENCODER 1393368871 ALTITUDE 2  23130554  -572         0
ms_off 1393368872 ROTATOR
UPDATE_ENCODER 1393368873 ROTATOR 1  8999  223         0
UPDATE_ENCODER 1393368873 ROTATOR 2  1606649645  0         0
ms_off 1393368883 AZIMUTH
ms_off 1393368883 ALTITUDE
ms_off 1393368883 ROTATOR
ms_on 1393368883 AZIMUTH
ms_on 1393368883 ALTITUDE
ms_on 1393368883 ROTATOR
ALT_FIDUCIAL 1393368892    6   22828312  22815324   22828096  22815114    88.978      -9340   -114171  0 0
SET_FIDUCIAL_ERROR 1393368892 ALTITUDE 1  216
SET_FIDUCIAL_ERROR 1393368892 ALTITUDE 2  210
ALT_FIDUCIAL 1393368905    5   19419312  19408660   19419344  19408583    77.333      -6948   -385273  216 210
SET_FIDUCIAL_ERROR 1393368905 ALTITUDE 1  -32
SET_FIDUCIAL_ERROR 1393368905 ALTITUDE 2  77
ALT_FIDUCIAL 1393368915    4   15533586  15525578   15533687  15525516    61.779      -3753   -385713  184 287
SET_FIDUCIAL_ERROR 1393368915 ALTITUDE 1  -101
SET_FIDUCIAL_ERROR 1393368915 ALTITUDE 2  62
ALT_FIDUCIAL 1393368925    3   11869600  11864108   11869750  11864083    47.851       -892   -385713  83 349
SET_FIDUCIAL_ERROR 1393368925 ALTITUDE 1  -150
SET_FIDUCIAL_ERROR 1393368925 ALTITUDE 2  25
ms_off 1393368946 ROTATOR
ms_off 1393368946 AZIMUTH
ms_off 1393368947 ALTITUDE
