# mission timer set to 120% of estimated time of mission
behavior missionTimer {
timeOut = 4000;
}

# depth envelope set to commanded + 5 m, abort at commanded + 10
behavior depthEnvelope {
 minDepth = 0;
 maxDepth     = 255;
 abortDepth   = 260;
 minAltitude  = 40;
 abortAltitude  = 5;
}


# First leg of run from waypoint M1.5 to C1.5 (deep water)
# acquire gps fix
behavior getgps {
duration = 300;
minHits = 30;
abortOnTimeout = True;
}

# ascend behavior
behavior ascend {
duration  = 1200;
horizontalMode   = rudder;
horizontal       = 10;
pitch            = 20;
speed            = 1.5;
endDepth         = 2;
}

# waypoint behavior
# Aiming for point 4 km downrange.
behavior waypoint_yoyo {
latitude     = 36.73052;
longitude     = -122.15665;
captureRadius = 10;
duration     = 2200;
speed        = 1.5;
minDepth       = 3;
maxDepth       = 250;
minAltitude    = 50;
maxCycles      = 1000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode   = heading;
horizontal      = 70;
pitch        = -15;
speed        = 1.5;
maxDepth     = 5;
duration     = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration     = 30;
heading      = 70;
speed        = 1.5;
verticalMode = pitch;
pitch        = 0;
}

# acquire gps fix
behavior getgps {
duration = 300;
minHits = 120;
abortOnTimeout = True;
}

