################################################################################
#
# PURPOSE: Test the vehicle's ability to control pitch.
#          Preliminary to establishing depth control.
# DATE:    00/7/26:
# NOTES:   
#          
# MODS:
#
################################################################################
# 
behavior missionTimer
{
  timeOut = 1400;
}

behavior depthEnvelope
{
  minDepth = 0;
  maxDepth = 25; 
  minAltitude = 10;
  abortDepth = 30;
}

# ascend behavior for return to surface
behavior ascend
{
duration = 180;
horizontalMode = rudder;
horizontal = 10.0;
pitch = 10;
speed = 1.5;
endDepth = 3.0;
}

behavior setElevator
{
  duration = 20;
  startTime = 420;
  speed = 1.5;
  elevator = -2.7;
}

# setpoint at pitch = 0
behavior setpoint
{
  duration     = 420;        #Seconds
  heading      = 250;       #Degrees
  speed        = 1.5;       #Meters/second
  verticalMode = depth;
  depth        = 20.0;         #Meters
  legDuration  = 420;        #Seconds
}

# use descend behavior for launch in order to simplify
# commanded pitch
# use descend behavior for launch in order to simplify
# commanded pitch
behavior descend
{
  duration         = 40;       #Seconds
  horizontalMode   = heading;  #Mode
  horizontal       = 250;      #Degrees;
  pitch            = -10.0;      #Degrees
  speed            = 1.5;      #Meters/sec
  minAltitude      = 20;       #Meters
  maxDepth         = 10;       #Meters
}

#
# Launch
#
behavior launch
{
  duration  = 60;           #Seconds
  elevator  = 3;           #Degrees
  speed     = 1.5;         #Meters/sec
  finalDepth= 3;            #Meters
}

behavior setpoint
{
  duration     = 60;        #Seconds
  heading      = 250;       #Degrees
  speed        = 1.5;       #Meters/second
  verticalMode = pitch;
  pitch        = 0.0;         #Meters
  legDuration  = 60;        #Seconds
}

