/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : WaypointTempYoyo.h, modified from WaypointYoyo.h              */
/* Author   : Yanwu Zhang                                                   */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 11/22/2005                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _WAYPOINTTEMPYOYO_H
#define _WAYPOINTTEMPYOYO_H

#include "ourTypes.h"
#include "Behavior.h"
#include "MathP.h"

#define WaypointTempYoyoBehaviorName "waypointtemp_yoyo"


/*
CLASS 
WaypointTempYoyo

DESCRIPTION
Attempts to achieve a position using the specified direction
of approach.


AUTHOR
hans. Modified by Yanwu Zhang.
*/
class WaypointTempYoyo : public Behavior {

public:

  WaypointTempYoyo();
  virtual ~WaypointTempYoyo();

  virtual void execute( void );
  virtual Boolean validInput( void );

  virtual Boolean shouldBehaviorStart( void );

protected:

  double _northing;
  double _easting;
  double _latitude;
  double _longitude;
  double _speed;
  double _bearing;
  double _captureRadius;
  double _gain;
  Boolean _circleMode;
  Boolean _first;

  Boolean _goingDown;
  double _minDepth;
  double _maxDepth;
  double _minPitch;
  double _maxPitch;
  double _minAltitude;
  double _maxCycles;
  double _minTemp;
  double _maxTemp;
  double _cyclesCompleted;

  enum ControlMode {Unspecified, Pitch, Depth};
  ControlMode _controlMode;
};



#endif
