//--------    FILE: gly_2.bhv   -------------

initialize   DEPLOY = false
initialize   RETURN = false

set MODE = ACTIVE {
  DEPLOY = true
} INACTIVE

set MODE = Const {
  MODE = ACTIVE
  RETURN != true
}

set MODE = RETURNING {
  MODE = ACTIVE
  RETURN = true
}

//----------------------------------------------
Behavior = BHV_ConstantHeading
{
// General Behavior Parameters
name = const_hdg // example
pwt = 100 // default
condition  = MODE == Const
updates = CONST_HDG_UPDATES // example

// Parameters specific to this behavior
basewidth = 10 // default
duration = 100
heading = 270
heading_mismatch_var = HDG_DIFF // example
peakwidth = 10 // default
summitdelta = 25 // default
}

//----------------------------------------------
Behavior = BHV_ConstantDepth
{
  name      = bhv_const_depth
  pwt       = 100
  duration  = 100
  condition = MODE == Const
  updates   = DEPTH_VALUE

        depth = 10
    peakwidth = 8
    basewidth = 12
  summitdelta = 10
}

//----------------------------------------------
Behavior = BHV_ConstantSpeed
{
// General Behavior Parameters
name = const_spd_transit // example
pwt = 100 // default
condition = MODE==Const
updates = CONST_SPD_UPDATES // example

// Parameters specific to this behavior
basewidth = 0.2 // default
duration = 100
speed = 0.5
speed_mismatch_var = SPEED_DIFF // example
peakwidth = 0 // default
summitdelta = 0 // default
}

//----------------------------------------------
Behavior = BHV_Waypoint
{
  name      = waypt_return
  priority  = 100
  perpetual = true
  updates   = RETURN_UPDATES
  condition = MODE==RETURNING
  endflag   = RETURN = false

      speed = 1
     radius = 3.0
  nm_radius = 15.0
      point = x=-50, y=-100
}

