/*
********************************************************
Copyright 2000 MBARI.
MBARI Proprietary Information. All rights reserved.
NOTE: This file is automatically generated.
DO NOT MODIFY.
********************************************************
*/

#ifndef __KvhCompassIF_H
#define __KvhCompassIF_H

#include "TaskInterface.h"


#define KvhCompassIFServerName "KvhCompassIFServer"

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

DESCRIPTION
TaskInterface to KVH Compass device driver 

AUTHOR
Andrew Pearce

*/
class KvhCompassIF : public TaskInterface {

  friend class KvhCompassIF_SK;

  public:

  
  enum Event {
    Online,
    Offline,
    CommsFailure
  };

  
  
  KvhCompassIF(const char *name, int timeout = 10);

  KvhCompassIF(const char *name, const char *serverName, int timeout = 10);

  ~KvhCompassIF();

  /////////////////////////////////////////////////////////
  // Get heading value and rate
  // [output] value: Heading in degrees
  // [output] time: Sampling time
  long heading(double *value, double *rate, long *time);

  
  protected:

  // Message codes for each method
  enum KvhCompassIFMsgCode {
    HeadingMsgCode
  };

  // Define message structure for each method
  struct HeadingMsg : Request, Reply {
    long returnVal;
    double value;
    double rate;
    long time;
  
  } _headingMsg;

};

#endif

