################################################################################
#
# 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
}



#
# Get fix at end of mission (may take longer to acquire)
#
#behavior getgps {
#	duration = 300;
#	minHits = 10;
#}

# Come back up to the surface.  The rudder angle is -10 Degrees so
# that this behavior may be distinguished from the abort behavior,
# which has +10 degrees rudder.
#

behavior ascend {

  duration         = 60;       #Seconds
  horizontalMode   = rudder;   #Mode
  horizontal       = -10;       #Degrees; 
  pitch            = 15;       #Degrees
  speed            = 1.3;      #Meters/sec
  endDepth         = 2;	       #Meters
}


#
# Waypoint at center of LBL array
# starting point = N4073357 E607052
 behavior waypoint
 {
   latitude     = 36.74823;    #equal to wp1 36' 44.894''
   longitude     = -121.87227;     #100 meters east 121' 52.336''
   speed         = 1.3;       #Meters/second
   depth         = 15;         #Meters (depth control by yoyo)
   captureRadius = 10;        #Meters
   circleMode    = 1;         # 
   duration      = 600;
 }

# Use descend behavior instead of launch to maintain pitch control.
behavior descend {

  duration         = 90;       #Seconds
  horizontalMode   = heading;  #Mode
  horizontal       = 220;       #Degrees; 
  pitch            = -15;      #Degrees
  speed            = 1.3;      #Meters/sec
  maxDepth         = 15;        #Meters
}

behavior setpoint
{
  duration     = 60;        #Seconds
  heading      = 220;       #Degrees
  speed        = 1.3;       #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;
#}


