/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : KvhInclinoOutput.h                                            */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#ifndef _KvhInclinoOutput_H
#define _KvhInclinoOutput_H

#include <time.h>
#include "SharedData.h"

#define KvhInclinoOutputName "KvhInclinoOutput_ShmemName"

/*
CLASS 
KvhInclinoOutput

DESCRIPTION
Output of KvhInclinoDriver

AUTHOR
Tom O'Reilly
*/
class KvhInclinoOutput : public SharedData {

public:

  struct Data {

    // Indicates that device is initialized and ready
    Boolean deviceReady;

    double pitch;
    double pitchRate;
    double roll;
    double rollRate;
    timespec updateTime;
  };

  KvhInclinoOutput(Access access = NoAccess, Boolean init = False);

  ~KvhInclinoOutput();


  ////////////////////////////////////////////////////////////////////
  // Read from shared memory to this object's Data::data element
  void read();

  ////////////////////////////////////////////////////////////////////
  // Write from this object's Data::data element to shared memory
  void write();

  Data data;

};

#endif
