################################################################################
#
# PURPOSE: Test the waypoint behavior and dead reckoning with GPS fixes.
#          
# DATE:    00/4/4:
# NOTES:  
#         
# MODS:
#
################################################################################
# 
behavior missionTimer
{
  timeOut = 5000;
}

#
# Depth Envelope
#
behavior depthEnvelope
{
  minDepth     = 0;         #Meters
  maxDepth     = 25;        #Meters
  minAltitude  = 10;        #Meters
  abortDepth   = 30;        #Meters
}



behavior ascend {

  duration         = 60;       #Seconds
  horizontalMode   = rudder;   #Mode
  horizontal       = -10;       #Degrees; 
  pitch            = 15;       #Degrees
  speed            = 1.4;      #Meters/sec
  endDepth         = 1;	       #Meters
}

#
# Waypoint at center of LBL array
# starting point = N4073357 E607052
 behavior waypoint
 {
   latitude     = 36.748265;    #equal to wp1 36' 44.894''
   longitude     = -121.872228;     #100 meters east 121' 52.336''
   speed         = 1.4;       #Meters/second
   depth         = 40;         #Meters (depth control by yoyo)
   captureRadius = 10;        #Meters
   circleMode    = 1;         # 
   duration      = 3300;
 }

# Use descend behavior instead of launch to maintain pitch control.
behavior descend {

  duration         = 90;       #Seconds
  horizontalMode   = heading;  #Mode
  horizontal       = 175;       #Degrees; 
  pitch            = -15;      #Degrees
  speed            = 1.4;      #Meters/sec
  maxDepth         = 15;        #Meters
}

behavior setpoint
{
  duration     = 60;        #Seconds
  heading      = 175;       #Degrees
  speed        = 1.4;       #Meters/second
  verticalMode = depth;
  depth        = 0.0;         #Meters
  legDuration  = 60;        #Seconds
}
#
# Get fix at start of mission
#
behavior getgps {
	abortOnTimeout=true;
	duration = 120;
	minHits = 10;
}


