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

SimulatorOutput::SimulatorOutput(Access access,
				 Boolean init)
  : SharedData(SimulatorOutputName, 
	       sizeof(SimulatorOutput::Data),
	       access, init)
{
}


SimulatorOutput::~SimulatorOutput()
{
}


void SimulatorOutput::read(SimulatorOutput::Data *data)
{
  SharedData::read((void *)data);
}


void SimulatorOutput::write(SimulatorOutput::Data *data)
{
  SharedData::write((void *)data);
}


SimulatorOutput::Data::Data()
{
  for (int i = 0; i < 3; i++) {

    rotationalVelocity[i] = translationalVelocity[i] = position[i] = 
      eulerAngles[i] = force[i] = torque[i] = 0.;
  }
  rudder = elevator = propSpeed = 0.;
}
