###############################################################################
#
# PURPOSE: Box mission 300 m offshore of MISO
# AUTHORS: (1) Rob McEwen 03/10/2006
#          (2)
# NOTE:    Sequential behavoirs are bottom-up.  Priorities are top-down.
# MODS:
#
###############################################################################






#
# Precomputed Miso box corners, assuming channel axis is at 334.
#
#iboxSW  = [36.606819 -121.874569]
#iboxNW  = [36.609244 -121.876043]
#iboxNWa = [36.608435 -121.875552]
#iboxSE  = [36.607016 -121.874066]
#iboxNE  = [36.609441 -121.875539]
#oboxNW  = [36.611669 -121.877516]
#oboxNWa = [36.610860 -121.877025]
#oboxNE  = [36.611866 -121.877013]
#
behavior missionTimer
{
  timeOut = 1550;
}
#
# Depth Envelope
#
behavior depthEnvelope
{
  minDepth = 0; #Meters
  maxDepth = 12; #Meters
  minAltitude = 6;#Meters
  abortDepth = 13; #Meters
}

behavior getgps
{
minHits = 10;
duration = 180;
}

behavior ascend
{
  duration = 120; #Seconds
  horizontalMode = rudder; #Mode
  horizontal = 10; #Degrees; 
  pitch = 15; #Degrees
  speed = 1.5; #Meters/sec
  endDepth = 3; #Meters
}

behavior ascend
{
  duration = 120; #Seconds
  horizontalMode = rudder; #Mode
  horizontal = -10; #Degrees; 
  pitch = 15; #Degrees
  speed = 1.5; #Meters/sec
  endDepth = 2; #Meters
}
#
# iboxNE = [36.609441 -121.875539]
behavior waypoint
{
latitude = 36.609441;
longitude = -121.875539;
duration = 300;
depth = 6;
speed = 1.5;
}
#
# iboxSE = [36.607016 -121.874066]
#
behavior waypoint
{
latitude = 36.607016;
longitude = -121.874066;
duration = 80;
depth = 6;
speed = 1.5;
}

behavior undock
{
  endDepth = 3;
  speed = 1.5;
  thrustDuration = 20;
  duration = 100;
  elevator = -10;
  abortOnTimeout = False;
}
