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

initialTime   1374281970

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 1374281970 AZIMUTH
UPDATE_ENCODER 1374281971 AZIMUTH 1  31077736  -65         0
UPDATE_ENCODER 1374281971 AZIMUTH 2  31070129  -61         0
ms_off 1374281972 ALTITUDE
UPDATE_ENCODER 1374281972 ALTITUDE 1  7717247  100         0
UPDATE_ENCODER 1374281972 ALTITUDE 2  7714496  8         0
ms_off 1374281974 ROTATOR
UPDATE_ENCODER 1374281974 ROTATOR 1  42  -16         0
UPDATE_ENCODER 1374281974 ROTATOR 2  -1567760558  0         0
ms_off 1374281979 AZIMUTH
ms_off 1374281979 ALTITUDE
ms_off 1374281979 ROTATOR
SET_FIDUCIAL_ERROR 1374281980 AZIMUTH 1  18
SET_FIDUCIAL_ERROR 1374281980 AZIMUTH 2  97
ms_on 1374281980 AZIMUTH
SET_FIDUCIAL_ERROR 1374281980 ALTITUDE 1  -12
SET_FIDUCIAL_ERROR 1374281980 ALTITUDE 2  -195
ms_on 1374281980 ALTITUDE
SET_FIDUCIAL_ERROR 1374281980 ROTATOR 1  19
SET_FIDUCIAL_ERROR 1374281980 ROTATOR 2  0
ms_on 1374281980 ROTATOR
ms_off 1374281983 AZIMUTH
ms_off 1374281983 ALTITUDE
ms_off 1374281983 ROTATOR
ms_off 1374282098 AZIMUTH
ms_off 1374282099 ALTITUDE
ms_off 1374282099 ROTATOR
ms_on 1374282099 AZIMUTH
ms_on 1374282099 ALTITUDE
ms_on 1374282099 ROTATOR
ms_off 1374282103 AZIMUTH
ms_off 1374282103 ALTITUDE
ms_off 1374282103 ROTATOR
