public void InitializeRemoteLaydown()
        {
            // Heavy UAV
            heavyUAVLaydown                     = new Platform3DLaydown();
            heavyUAVLaydown.numMean             = 3.5f;
            heavyUAVLaydown.numStdDev           = 1.0f;
            heavyUAVLaydown.numMin              = 2;
            heavyUAVLaydown.numMax              = 5;
            heavyUAVLaydown.fromAnchorStdDev_km = 5;
            heavyUAVLaydown.fromAnchorMax_km    = 15;
            heavyUAVLaydown.altitudeMean_km     = 0.25f;
            heavyUAVLaydown.altitudeStdDev_km   = 0.25f;
            heavyUAVLaydown.altitudeMin_km      = 0.0f;
            heavyUAVLaydown.altitudeMax_km      = 0.5f;
            heavyUAVLaydown.anchors             = extractSiteLocations(blueBases);
            heavyUAVLaydown.allowedCells        = landAndWaterCells;

            // Small UAV
            smallUAVLaydown                     = new Platform3DLaydown();
            smallUAVLaydown.numMean             = 3.5f;
            smallUAVLaydown.numStdDev           = 1.0f;
            smallUAVLaydown.numMin              = 2;
            smallUAVLaydown.numMax              = 5;
            smallUAVLaydown.fromAnchorStdDev_km = 5;
            smallUAVLaydown.fromAnchorMax_km    = 15;
            smallUAVLaydown.altitudeMean_km     = 2.5f;
            smallUAVLaydown.altitudeStdDev_km   = 2.5f;
            smallUAVLaydown.altitudeMin_km      = 0.0f;
            smallUAVLaydown.altitudeMax_km      = 5.0f;
            smallUAVLaydown.anchors             = extractSiteLocations(blueBases);
            smallUAVLaydown.allowedCells        = landAndWaterCells;
        }
Exemple #2
0
        /**
         * Called at the start of a new run
         */
        public void GenerateBlueHeavyUAVPositions()
        {
            Platform3DLaydown uavLaydown = new Platform3DLaydown();

            uavLaydown.fromAnchorStdDev_km = 5;
            uavLaydown.fromAnchorMax_km    = 15;
            uavLaydown.altitudeMean_km     = 2.5f;
            uavLaydown.altitudeStdDev_km   = 2.5f;
            uavLaydown.altitudeMin_km      = 0.0f;
            uavLaydown.altitudeMax_km      = 5.0f;
            uavLaydown.anchors             = trialGenerator.GetBlueBaseLocations();         //blue bases
            uavLaydown.allowedCells        = trialGenerator.GetLandAndWaterCells();         //land and water cells

            NumberBlueHeavyUAV = GetNumberBlueHeavyUAV();
            HeavyUAVPositions  = GenerateGroundPositions(NumberBlueHeavyUAV, uavLaydown);
        }