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

initialTime   1372554570

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;

UPDATE_ENCODER 1372554570 AZIMUTH 1  31077643  0         0
UPDATE_ENCODER 1372554570 AZIMUTH 2  31070241  0         0
UPDATE_ENCODER 1372554571 ALTITUDE 1  7687965  -138         0
UPDATE_ENCODER 1372554572 ALTITUDE 2  7685376  -53         0
ms_off 1372554581 ROTATOR
UPDATE_ENCODER 1372554581 ROTATOR 1  -23  0         0
UPDATE_ENCODER 1372554583 ROTATOR 2  -1134233438  0         0
ms_off 1372554607 AZIMUTH
ms_off 1372554609 ALTITUDE
ms_off 1372554611 ROTATOR
ms_on 1372554611 AZIMUTH
ms_on 1372554611 ALTITUDE
ms_on 1372554611 ROTATOR
ms_off 1372554611 AZIMUTH
ms_off 1372554613 ALTITUDE
ms_off 1372554615 ROTATOR
ms_off 1372556452 AZIMUTH
UPDATE_ENCODER 1372556453 AZIMUTH 1  31077649  0         0
UPDATE_ENCODER 1372556453 AZIMUTH 2  31070242  0         0
ms_off 1372556454 ALTITUDE
UPDATE_ENCODER 1372556455 ALTITUDE 1  7706541  0         0
UPDATE_ENCODER 1372556455 ALTITUDE 2  7685562  0         0
ms_off 1372556457 ROTATOR
UPDATE_ENCODER 1372556458 ROTATOR 1  5869  0         0
UPDATE_ENCODER 1372556458 ROTATOR 2  -1130117704  0         0
ms_off 1372556464 AZIMUTH
ms_off 1372556465 ALTITUDE
ms_off 1372556465 ROTATOR
ms_on 1372556465 AZIMUTH
ms_on 1372556466 ALTITUDE
ms_on 1372556467 ROTATOR
ALT_FIDUCIAL 1372556488    3   11869553  11864118   11866961  11843351    44.740       -253    385714  0 0
ALT_FIDUCIAL 1372556497    4   15533524  15525594   15530977  15505061    58.731      -3127    385714  0 0
ALT_FIDUCIAL 1372556507    5   19419260  19408680   19416705  19388247    74.398      -6345    385161  0 0
ALT_FIDUCIAL 1372556521    6   22828272  22815332   22825719  22795089    87.795      -9097    113657  0 0
ms_off 1372556528 AZIMUTH
ms_off 1372556528 ALTITUDE
ms_off 1372556528 ROTATOR
SET_FIDUCIAL_ERROR 1372556544 ALTITUDE 1  2553
SET_FIDUCIAL_ERROR 1372556550 ALTITUDE 2  20243
ms_off 1372556557 AZIMUTH
UPDATE_ENCODER 1372556557 AZIMUTH 1  31077721  0         0
UPDATE_ENCODER 1372556558 AZIMUTH 2  31070307  0         0
ms_off 1372556559 ALTITUDE
UPDATE_ENCODER 1372556559 ALTITUDE 1  23145317  2553         0
UPDATE_ENCODER 1372556559 ALTITUDE 2  23131894  20243         0
ms_off 1372556561 ROTATOR
UPDATE_ENCODER 1372556561 ROTATOR 1  5  0         0
UPDATE_ENCODER 1372556561 ROTATOR 2  -1130106581  0         0
ms_off 1372556566 AZIMUTH
ms_off 1372556567 ALTITUDE
ms_off 1372556568 ROTATOR
ms_on 1372556568 AZIMUTH
ms_on 1372556569 ALTITUDE
ms_on 1372556570 ROTATOR
ALT_FIDUCIAL 1372556575    6   22828272  22815332   22828128  22814930    88.944      -9333   -114428  0 0
SET_FIDUCIAL_ERROR 1372556577 ALTITUDE 1  144
SET_FIDUCIAL_ERROR 1372556577 ALTITUDE 2  402
ALT_FIDUCIAL 1372556589    5   19419260  19408680   19419171  19408472    75.848      -6643   -240994  144 402
SET_FIDUCIAL_ERROR 1372556590 ALTITUDE 1  89
SET_FIDUCIAL_ERROR 1372556590 ALTITUDE 2  208
ms_off 1372556602 AZIMUTH
ms_off 1372556602 ALTITUDE
ms_off 1372556602 ROTATOR
ms_off 1372556607 AZIMUTH
ms_off 1372556608 ALTITUDE
ms_off 1372556608 ROTATOR
ms_on 1372556608 AZIMUTH
ms_on 1372556608 ALTITUDE
ms_on 1372556608 ROTATOR
ALT_FIDUCIAL 1372556622    5   19419260  19408680   19419545  19408961    74.096      -6283    241971  233 610
SET_FIDUCIAL_ERROR 1372556623 ALTITUDE 1  -285
SET_FIDUCIAL_ERROR 1372556623 ALTITUDE 2  -281
ALT_FIDUCIAL 1372556637    6   22828272  22815332   22828174  22815394    88.228      -9186    113293  -52 329
SET_FIDUCIAL_ERROR 1372556638 ALTITUDE 1  98
SET_FIDUCIAL_ERROR 1372556638 ALTITUDE 2  -62
ms_off 1372556643 AZIMUTH
ms_off 1372556643 ALTITUDE
ms_off 1372556644 ROTATOR
ms_off 1372556654 AZIMUTH
ms_off 1372556654 ALTITUDE
ms_off 1372556654 ROTATOR
ms_on 1372556654 AZIMUTH
ms_on 1372556654 ALTITUDE
ms_on 1372556655 ROTATOR
AZ_FIDUCIAL 1372556669   21   27561732  27556556   27561746  27556692   107.311   -513681  0 0
SET_FIDUCIAL_ERROR 1372556670 AZIMUTH 1  -14
SET_FIDUCIAL_ERROR 1372556670 AZIMUTH 2  -136
AZ_FIDUCIAL 1372556677   20   23703668  23701100   23703720  23701123    92.290   -436950  -14 -136
SET_FIDUCIAL_ERROR 1372556677 AZIMUTH 1  -52
SET_FIDUCIAL_ERROR 1372556677 AZIMUTH 2  -23
ms_off 1372556685 AZIMUTH
ms_off 1372556688 ALTITUDE
ms_off 1372556688 ROTATOR
ms_off 1372556691 AZIMUTH
ms_off 1372556691 ALTITUDE
ms_off 1372556691 ROTATOR
ms_on 1372556691 AZIMUTH
ms_on 1372556691 ALTITUDE
ms_on 1372556691 ROTATOR
AZ_FIDUCIAL 1372556703   20   23703668  23701100   23703201  23700732    92.288    439197  -66 -159
SET_FIDUCIAL_ERROR 1372556703 AZIMUTH 1  467
SET_FIDUCIAL_ERROR 1372556703 AZIMUTH 2  368
AZ_FIDUCIAL 1372556710   21   27561732  27556556   27561869  27556759   107.311    513681  401 209
SET_FIDUCIAL_ERROR 1372556710 AZIMUTH 1  -137
SET_FIDUCIAL_ERROR 1372556711 AZIMUTH 2  -203
ms_off 1372556723 ROTATOR
ms_off 1372556723 AZIMUTH
ms_off 1372556723 ALTITUDE
ms_off 1372556729 AZIMUTH
ms_off 1372556730 ALTITUDE
ms_off 1372556731 ROTATOR
ms_on 1372556733 AZIMUTH
ms_on 1372556733 ALTITUDE
ms_on 1372556733 ROTATOR
ALT_FIDUCIAL 1372556738    6   22828272  22815332   22828153  22815143    88.978      -9340   -114043  46 267
SET_FIDUCIAL_ERROR 1372556738 ALTITUDE 1  119
SET_FIDUCIAL_ERROR 1372556738 ALTITUDE 2  189
ALT_FIDUCIAL 1372556751    5   19419260  19408680   19419181  19408515    76.389      -6754   -385273  165 456
SET_FIDUCIAL_ERROR 1372556757 ALTITUDE 1  79
SET_FIDUCIAL_ERROR 1372556758 ALTITUDE 2  165
ALT_FIDUCIAL 1372556762    4   15533524  15525594   15533530  15525501    60.854      -3563   -385713  244 621
SET_FIDUCIAL_ERROR 1372556763 ALTITUDE 1  -6
SET_FIDUCIAL_ERROR 1372556763 ALTITUDE 2  93
ALT_FIDUCIAL 1372556771    3   11869553  11864118   11869540  11863943    47.150       -748   -385714  238 714
SET_FIDUCIAL_ERROR 1372556771 ALTITUDE 1  13
SET_FIDUCIAL_ERROR 1372556771 ALTITUDE 2  175
ms_off 1372556792 ALTITUDE
ms_off 1372556794 ROTATOR
ms_off 1372556796 AZIMUTH
