################################################################################
#
# PURPOSE: Speed steps.
# AUTHOR:
# DATE:    01/05/30:
# NOTE:    Sequential behavoirs are bottom-up.  Priorities are top-down.
# MODS:
#
################################################################################
#
behavior missionTimer
{
  timeOut = 1300;
}
#
# Depth Envelope
#
behavior depthEnvelope
{
  minDepth     = 0;          #Meters
  maxDepth     = 35;         #Meters
  minAltitude  = 7;          #Meters
  abortDepth   = 37;         #Meters
}
#
# Come back up to the surface.
#
behavior ascend {

  duration         = 60;       #Seconds
  horizontalMode   = heading;  #Mode
  horizontal       = 225;      #Degrees;
  pitch            = 15;       #Degrees
  speed            = 1.5;      #Meters/sec
  endDepth         = 2;        #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 600;         #Seconds
  heading      = 225;         #Degrees
  speed        = 0.;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 60;          #Seconds
  heading      = 225;          #Degrees
  speed        = 1.5;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 60;           #Seconds
  heading      = 225;          #Degrees
  speed        = .75;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 60;           #Seconds
  heading      = 225;          #Degrees
  speed        = 1.0;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 60;           #Seconds
  heading      = 225;          #Degrees
  speed        = 1.5;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Command a constant heading and depth.
#
behavior setpoint
{
  duration     = 60;           #Seconds
  heading      = 225;          #Degrees
  speed        = 2.0;          #Meters/second
  verticalMode = depth;
  depth        = 30;           #Meters
}
#
# Use descend behavior instead of launch to maintain pitch control.
#
behavior descend {

  duration         = 240;       #Seconds
  horizontalMode   = heading;  #Mode
  horizontal       = 225;      #Degrees;
  pitch            = -15;      #Degrees
  speed            = 1.5;      #Meters/sec
  minAltitude      = 3;        #Meters
  maxDepth         = 30;       #Meters
}

behavior setpoint
{
  duration     = 60;        #Seconds
  heading      = 225;       #Degrees
  speed        = 1.5;       #Meters/second
  verticalMode = depth;
  depth        = 0.0;       #Meters
  legDuration  = 30;        #Seconds
}
