#CANON_SoCal_2013_inshore_to_offshore
#fire the Gulper after 12misobath_5
# mission timer set to 120% of estimated time of mission
behavior missionTimer {
timeOut = 30000;
}

# depth envelope set to commanded + 5 m, abort at commanded + 10
behavior depthEnvelope {
 minDepth = 0;
 maxDepth = 90;
 abortDepth = 100;
 abortAltitude = 2.5;
 abortLockoutDepth = 8.0;
}


behavior getgps {
duration = 1800;
minHits = 300;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = rudder;
horizontal = 5;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.5180;
longitude = -118.0900;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 80;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = heading;
horizontal = 211.0;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.5352;
longitude = -118.0767;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 80;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = heading;
horizontal = 211.0;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.5523;
longitude = -118.0633;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 80;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = heading;
horizontal = 211.0;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.5695;
longitude = -118.0500;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 80;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = heading;
horizontal = 211.0;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.5854;
longitude = -118.0375;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 80;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = heading;
horizontal = 211.0;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.6062;
longitude = -118.0214;
captureRadius = 10;
duration = 2700;
speed = 1.4;
minDepth = 1.5;
maxDepth = 30;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 211.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 211.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}

# ascend behavior
behavior ascend {
duration = 1200;
horizontalMode = rudder;
horizontal = 5;
pitch = 20;
speed = 1.5;
endDepth = 2;
}

behavior waypoint_yoyo {
latitude = 33.6210;
longitude = -118.0100;
captureRadius = 10;
duration = 1000;
speed = 1.4;
minDepth = 1.5;
maxDepth = 20;
minAltitude = 7.5;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 140.0;
pitch = -30;
speed = 1.5;
maxDepth = 5;
minAltitude = 9;
duration = 60;
}

# setpoint on surface to gather momentum
behavior setpoint {
duration = 30;
heading = 140.0;
speed = 1.5;
verticalMode = pitch;
pitch = 0;
}

behavior getgps {
duration = 300;
minHits = 15;
abortOnTimeout = False;
}
