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

#include "SharedData.h"

#define SimulatorInputName "simulatorInput"

/*
CLASS 
SimulatorInput

DESCRIPTION
SharedData interface between SimulatorServer and Simulator

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

public:

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

  ~SimulatorInput();

  struct Data {

    Data();
    float vehicleMass;
    double propSpeed;
    double rudder;
    double elevator;
    double northCurrent;
    double eastCurrent;

  };

  ////////////////////////////////////////////////////////////////////
  // Read Simulator output from shared memory
  void read(Data *data);

  ////////////////////////////////////////////////////////////////////
  // Write Simulator output to shared memory
  void write(Data *data);

};

#endif
