mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-30 22:18:02 +00:00
86e684dc63
# Conflicts: # Moose Mission Setup/Moose Mission Update/l10n/DEFAULT/Moose.lua # Moose Mission Setup/Moose.lua
24 lines
982 B
Lua
24 lines
982 B
Lua
---
|
|
-- Name: DET-001 - Detection Areas
|
|
-- Author: FlightControl
|
|
-- Date Created: 04 Feb 2017
|
|
--
|
|
-- # Situation:
|
|
--
|
|
-- A small blue vehicle with laser detection methods is detecting targets.
|
|
-- Targets are grouped within areas. A detection range and zone range is given to group the detected units.
|
|
-- This demo will group 5 red vehicles in areas. One vehicle is diving from one group to the other.
|
|
--
|
|
-- # Test cases:
|
|
--
|
|
-- 1. Observe the flaring of the areas formed
|
|
-- 2. Observe the smoking of the units detected
|
|
-- 3. Observe the areas being flexibly changed very detection run.
|
|
-- 4. The truck driving from the one group to the other, will leave the first area, and will join the second.
|
|
-- 5. While driving in between the areas, it will have a separate area.
|
|
|
|
local FACSetGroup = SET_GROUP:New():FilterPrefixes( "FAC Group" ):FilterStart()
|
|
|
|
local FACDetection = DETECTION_AREAS:New( FACSetGroup, 150, 250 ):BoundDetectedZones():SmokeDetectedUnits()
|
|
|
|
FACDetection:__Start( 5 ) |