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

initialTime   1391211967

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 1391211967 AZIMUTH
UPDATE_ENCODER 1391211967 AZIMUTH 1  31077268  0         0
UPDATE_ENCODER 1391211967 AZIMUTH 2  31069942  0         0
ms_off 1391211969 ALTITUDE
UPDATE_ENCODER 1391211969 ALTITUDE 1  7716446  -319         0
UPDATE_ENCODER 1391211969 ALTITUDE 2  7713912  -173         0
ms_off 1391211970 ROTATOR
UPDATE_ENCODER 1391211971 ROTATOR 1  5097  0         0
UPDATE_ENCODER 1391211971 ROTATOR 2  876736905  0         0
ms_off 1391211975 AZIMUTH
UPDATE_ENCODER 1391211975 AZIMUTH 1  31077275  0         0
UPDATE_ENCODER 1391211976 AZIMUTH 2  31069940  0         0
ms_off 1391211977 ALTITUDE
UPDATE_ENCODER 1391211977 ALTITUDE 1  7716403  0         0
UPDATE_ENCODER 1391211977 ALTITUDE 2  7713839  0         0
ms_off 1391211978 ROTATOR
UPDATE_ENCODER 1391211978 ROTATOR 1  5097  0         0
UPDATE_ENCODER 1391211978 ROTATOR 2  876738931  0         0
ms_off 1391211982 AZIMUTH
UPDATE_ENCODER 1391211983 AZIMUTH 1  31077272  0         0
UPDATE_ENCODER 1391211983 AZIMUTH 2  31069933  0         0
ms_off 1391211984 ALTITUDE
UPDATE_ENCODER 1391211984 ALTITUDE 1  7716366  0         0
UPDATE_ENCODER 1391211984 ALTITUDE 2  7713805  0         0
ms_off 1391211985 ROTATOR
UPDATE_ENCODER 1391211985 ROTATOR 1  5097  0         0
UPDATE_ENCODER 1391211985 ROTATOR 2  876740629  0         0
ms_off 1391211990 AZIMUTH
ms_off 1391211991 ALTITUDE
ms_off 1391211991 ROTATOR
SET_FIDUCIAL_ERROR 1391211991 AZIMUTH 1  138
SET_FIDUCIAL_ERROR 1391211991 AZIMUTH 2  -24
ms_on 1391211991 AZIMUTH
SET_FIDUCIAL_ERROR 1391211991 ALTITUDE 1  273
SET_FIDUCIAL_ERROR 1391211991 ALTITUDE 2  32
ms_on 1391211991 ALTITUDE
SET_FIDUCIAL_ERROR 1391211991 ROTATOR 1  181
SET_FIDUCIAL_ERROR 1391211991 ROTATOR 2  0
ms_on 1391211991 ROTATOR
ALT_FIDUCIAL 1391212014    3   11869600  11864108   11869710  11864257    44.472       -198    385714  273 32
SET_FIDUCIAL_ERROR 1391212014 ALTITUDE 1  -110
SET_FIDUCIAL_ERROR 1391212014 ALTITUDE 2  -149
ALT_FIDUCIAL 1391212024    4   15533586  15525578   15533491  15525737    58.332      -3045    385714  163 -117
SET_FIDUCIAL_ERROR 1391212024 ALTITUDE 1  95
SET_FIDUCIAL_ERROR 1391212024 ALTITUDE 2  -159
ALT_FIDUCIAL 1391212034    5   19419312  19408660   19419252  19408863    74.096      -6283    385104  258 -276
SET_FIDUCIAL_ERROR 1391212034 ALTITUDE 1  60
SET_FIDUCIAL_ERROR 1391212034 ALTITUDE 2  -203
ALT_FIDUCIAL 1391212047    6   22828312  22815324   22828175  22815414    88.467      -9235    113031  318 -479
SET_FIDUCIAL_ERROR 1391212047 ALTITUDE 1  137
SET_FIDUCIAL_ERROR 1391212047 ALTITUDE 2  -90
ms_off 1391212054 AZIMUTH
ms_off 1391212054 ALTITUDE
ms_off 1391212054 ROTATOR
ms_off 1391212876 AZIMUTH
UPDATE_ENCODER 1391212877 AZIMUTH 1  31077323  138         0
UPDATE_ENCODER 1391212877 AZIMUTH 2  31069832  -24         0
ms_off 1391212878 ALTITUDE
UPDATE_ENCODER 1391212879 ALTITUDE 1  23143541  455         0
UPDATE_ENCODER 1391212879 ALTITUDE 2  23130377  -569         0
ms_off 1391212880 ROTATOR
UPDATE_ENCODER 1391212880 ROTATOR 1  6884  181         0
UPDATE_ENCODER 1391212880 ROTATOR 2  877044683  0         0
ms_off 1391212885 AZIMUTH
ms_off 1391212885 ALTITUDE
ms_off 1391212885 ROTATOR
ms_on 1391212886 AZIMUTH
ms_on 1391212886 ALTITUDE
ms_on 1391212886 ROTATOR
ALT_FIDUCIAL 1391212894    6   22828312  22815324   22828039  22815075    89.280      -9402   -114171  0 0
SET_FIDUCIAL_ERROR 1391212894 ALTITUDE 1  273
SET_FIDUCIAL_ERROR 1391212895 ALTITUDE 2  249
ALT_FIDUCIAL 1391212908    5   19419312  19408660   19419306  19408492    76.885      -6856   -385273  273 249
SET_FIDUCIAL_ERROR 1391212908 ALTITUDE 1  6
SET_FIDUCIAL_ERROR 1391212908 ALTITUDE 2  168
ALT_FIDUCIAL 1391212918    4   15533586  15525578   15533689  15525456    61.331      -3661   -385714  279 417
SET_FIDUCIAL_ERROR 1391212918 ALTITUDE 1  -103
SET_FIDUCIAL_ERROR 1391212918 ALTITUDE 2  122
ALT_FIDUCIAL 1391212927    3   11869600  11864108   11869749  11864050    47.661       -853   -385714  176 539
SET_FIDUCIAL_ERROR 1391212927 ALTITUDE 1  -149
SET_FIDUCIAL_ERROR 1391212927 ALTITUDE 2  58
ms_off 1391212949 AZIMUTH
ms_off 1391212949 ALTITUDE
ms_off 1391212949 ROTATOR
ms_off 1391213557 AZIMUTH
ms_off 1391213557 ALTITUDE
ms_off 1391213558 ROTATOR
ms_on 1391213558 AZIMUTH
ms_on 1391213558 ALTITUDE
ms_on 1391213558 ROTATOR
ms_off 1391213561 AZIMUTH
ms_off 1391213561 ALTITUDE
ms_off 1391213561 ROTATOR
ms_off 1391213574 AZIMUTH
ms_off 1391213575 ALTITUDE
ms_off 1391213575 ROTATOR
ms_off 1391213575 AZIMUTH
ms_off 1391213575 ALTITUDE
ms_off 1391213575 ROTATOR
