#should be 8 hour mission, set timer to 8 hours
#set timeout in seconds
behavior missionTimer {
timeOut = 68400;
}

behavior depthEnvelope {
  minDepth = 0;
  maxDepth = 170;
  abortDepth = 180;
}

# acquire gps fix
behavior getgps {
duration = 4000;
minHits = 3600;
abortOnTimeout = True;
}


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

#fourth leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#first leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#fourth leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}


# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}


# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#first leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#fourth leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#First leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

#end of second lap

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

#fourth leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#first leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#fourth leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}


# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}


# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#first leg to veretx 3
behavior waypoint_yoyo {
latitude = 36.4868;
longitude = -122.7056;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 25.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#fourth leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#First leg to veretx 2
behavior waypoint_yoyo {
latitude = 36.4021;
longitude = -122.7545;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 265.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

#end of first lap

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

#fourth leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#third leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#second leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}

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

#first leg to veretx 1
behavior waypoint_yoyo {
latitude = 36.4103;
longitude = -122.6392;
captureRadius = 10;
duration = 2700;
speed = 1.50;
minDepth = 2.5;
maxDepth = 150;
maxCycles = 2000;
}

# Descend behavior to 5 meters
behavior descend {
horizontalMode = heading;
horizontal = 145.0;
pitch = -15;
speed = 1.50;
maxDepth = 5;
duration = 60;
}

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

# acquire gps fix
behavior getgps {
duration = 600;
minHits = 60;
abortOnTimeout = True;
}
