/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : WaypointWallLog.cc                                            */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/24/2014                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*-----------------------------------------------------------------------*
  CLASS: WaypointWallLog.h

  DESCRIPTION: Logging object for the WaypointWall behavior 

  $Id: WaypointWallLog.cc,v 1.3 2014/02/27 23:17:09 hthomas Exp $
  *-----------------------------------------------------------------------*/

#include "WaypointWall.h"

WaypointWallLog::WaypointWallLog(DataLog::FileFormat format)
  : DataLogWriter( "WaypointWall", format, AutoTimeStamp )
{
  setMnemonic("wpw.data");

  addField( (_xTrkOffset = new DoubleData("wpw.xTrkOffset")) );

  // Setup units and longname fields for logging
  //
  _xTrkOffset->setUnits("Meters");
  _xTrkOffset->setLongName("cross track offset");

  addField( (_counter = new IntegerData("wpw.counter")) );
}  

WaypointWallLog::~WaypointWallLog()
{
  delete _xTrkOffset;
  delete _counter;
}

void WaypointWallLog::setFields(WaypointWall *waypointWall)
{
  _xTrkOffset->setValue( waypointWall->_xTrkOffset);
  _counter->setValue( waypointWall->_counter);
}

void WaypointWallLog::setFields()
{
}

