/*****************************************************************************
Copyright 1998 MBARI                                                      
******************************************************************************
Summary  : Converts binary data files into MATLAB MAT files 
Filename : bin2mat.h
Author   : Michael B. Matthews                                                
Project  : New ROV                                                     
Version  : 2.0                                                         
Created  : 10.8.98  
Modified :   
Notes    : Reads in file in arg[0] and writes out MAT file with ".mat" suffix 
         : argv[1] - filename	
         : argv[2] - beginning buffer number
         : argv[3] - ending buffer number	
******************************************************************************/

#define OUTPUT_BUFFER_SIZE 50 * 60

struct MotionPak_Input_Buffer 
{
  char*	name;
  MBool status;
  MBool state;
  Int16 index;
  Int16 size;
  Flt32* time;
  Flt32* ref;
  Flt32* ax;
  Flt32* ay;
  Flt32* az;
  Flt32* rx;
  Flt32* ry;
  Flt32* rz;
  Flt32* temp;
};


/* calibrated MotionPak data structure */
struct MotionPak_Output 
{
  MBool state;
  Flt64 time;
  Flt32 ref;
  Flt32 ax;
  Flt32 ay;
  Flt32 az;
  Flt32 rx;
  Flt32 ry;
  Flt32 rz;
  Flt32 temp;
};


struct MotionPak_Output_Buffer
{
  char*	name;
  MBool status;
  MBool state;
  Int16 index;
  Int16 size;
  Flt32* time;
  Flt32* ref;
  Flt32* ax;
  Flt32* ay;
  Flt32* az;
  Flt32* rx;
  Flt32* ry;
  Flt32* rz;
  Flt32* temp;
};


/*
STATUS MotionPak_Output_Buffer_Initialize(MotionPak_Output_Buffer*, Int);

Void MotionPak_Output_Buffer_Free(MotionPak_Output_Buffer*);
Int MotionPak_Read_Buffer(MotionPak_Output_Buffer*, FILE*);
*/
