![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 5, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #include <RISE/antenna/pattern/twodimensional/WINNER70.hpp> 00029 00030 using namespace rise::antenna::pattern::twodimensional; 00031 00032 WINNER70::WINNER70() 00033 { 00034 pd_startUp(); 00035 } 00036 00037 WINNER70::~WINNER70() 00038 {} 00039 00040 WINNER70* WINNER70::myself = 0; 00041 00042 void WINNER70::pd_startUp () 00043 { 00044 type = "Internal"; 00045 pattern = "WINNER_70"; 00046 unsigned long int horSize = 360; 00047 unsigned long int vertSize = 180; 00048 pd_elevationVector = Double64Vector(vertSize + 1); 00049 pd_azimuthVector = Double64Vector(horSize + 1); 00050 pd_gain = 14.00; 00051 // No elevation angle influence on gain 00052 for (int ii=0; ii<=180; ++ii) 00053 pd_elevationVector[ii] = 0.0 ; 00054 00055 // Preinitialize Pattern with -20dB 00056 for (unsigned long int i = 0; i <= horSize; i++) 00057 { 00058 pd_azimuthVector[i] = -2.0000000000000000e+01; 00059 } 00060 00061 // Set those angles where the pattern attenuation is less than -20dB 00062 pd_azimuthVector[91] = -2.0000000000000000e+01; 00063 pd_azimuthVector[90] = -1.9836734693877556e+01; 00064 pd_azimuthVector[89] = -1.9398367346938773e+01; 00065 pd_azimuthVector[88] = -1.8964897959183673e+01; 00066 pd_azimuthVector[87] = -1.8536326530612246e+01; 00067 pd_azimuthVector[86] = -1.8112653061224492e+01; 00068 pd_azimuthVector[85] = -1.7693877551020403e+01; 00069 pd_azimuthVector[84] = -1.7279999999999998e+01; 00070 pd_azimuthVector[83] = -1.6871020408163265e+01; 00071 pd_azimuthVector[82] = -1.6466938775510204e+01; 00072 pd_azimuthVector[81] = -1.6067755102040817e+01; 00073 pd_azimuthVector[80] = -1.5673469387755100e+01; 00074 pd_azimuthVector[79] = -1.5284081632653061e+01; 00075 pd_azimuthVector[78] = -1.4899591836734695e+01; 00076 pd_azimuthVector[77] = -1.4520000000000003e+01; 00077 pd_azimuthVector[76] = -1.4145306122448979e+01; 00078 pd_azimuthVector[75] = -1.3775510204081632e+01; 00079 pd_azimuthVector[74] = -1.3410612244897960e+01; 00080 pd_azimuthVector[73] = -1.3050612244897962e+01; 00081 pd_azimuthVector[72] = -1.2695510204081630e+01; 00082 pd_azimuthVector[71] = -1.2345306122448978e+01; 00083 pd_azimuthVector[70] = -1.2000000000000000e+01; 00084 pd_azimuthVector[69] = -1.1659591836734695e+01; 00085 pd_azimuthVector[68] = -1.1324081632653060e+01; 00086 pd_azimuthVector[67] = -1.0993469387755102e+01; 00087 pd_azimuthVector[66] = -1.0667755102040815e+01; 00088 pd_azimuthVector[65] = -1.0346938775510203e+01; 00089 pd_azimuthVector[64] = -1.0031020408163265e+01; 00090 pd_azimuthVector[63] = -9.7200000000000006e+00; 00091 pd_azimuthVector[62] = -9.4138775510204074e+00; 00092 pd_azimuthVector[61] = -9.1126530612244903e+00; 00093 pd_azimuthVector[60] = -8.8163265306122440e+00; 00094 pd_azimuthVector[59] = -8.5248979591836740e+00; 00095 pd_azimuthVector[58] = -8.2383673469387766e+00; 00096 pd_azimuthVector[57] = -7.9567346938775518e+00; 00097 pd_azimuthVector[56] = -7.6800000000000015e+00; 00098 pd_azimuthVector[55] = -7.4081632653061229e+00; 00099 pd_azimuthVector[54] = -7.1412244897959196e+00; 00100 pd_azimuthVector[53] = -6.8791836734693872e+00; 00101 pd_azimuthVector[52] = -6.6220408163265310e+00; 00102 pd_azimuthVector[51] = -6.3697959183673456e+00; 00103 pd_azimuthVector[50] = -6.1224489795918364e+00; 00104 pd_azimuthVector[49] = -5.8799999999999990e+00; 00105 pd_azimuthVector[48] = -5.6424489795918360e+00; 00106 pd_azimuthVector[47] = -5.4097959183673465e+00; 00107 pd_azimuthVector[46] = -5.1820408163265306e+00; 00108 pd_azimuthVector[45] = -4.9591836734693890e+00; 00109 pd_azimuthVector[44] = -4.7412244897959184e+00; 00110 pd_azimuthVector[43] = -4.5281632653061230e+00; 00111 pd_azimuthVector[42] = -4.3199999999999994e+00; 00112 pd_azimuthVector[41] = -4.1167346938775511e+00; 00113 pd_azimuthVector[40] = -3.9183673469387750e+00; 00114 pd_azimuthVector[39] = -3.7248979591836737e+00; 00115 pd_azimuthVector[38] = -3.5363265306122447e+00; 00116 pd_azimuthVector[37] = -3.3526530612244900e+00; 00117 pd_azimuthVector[36] = -3.1738775510204076e+00; 00118 pd_azimuthVector[35] = -3.0000000000000000e+00; 00119 pd_azimuthVector[34] = -2.8310204081632651e+00; 00120 pd_azimuthVector[33] = -2.6669387755102036e+00; 00121 pd_azimuthVector[32] = -2.5077551020408162e+00; 00122 pd_azimuthVector[31] = -2.3534693877551018e+00; 00123 pd_azimuthVector[30] = -2.2040816326530610e+00; 00124 pd_azimuthVector[29] = -2.0595918367346941e+00; 00125 pd_azimuthVector[28] = -1.9200000000000004e+00; 00126 pd_azimuthVector[27] = -1.7853061224489799e+00; 00127 pd_azimuthVector[26] = -1.6555102040816327e+00; 00128 pd_azimuthVector[25] = -1.5306122448979591e+00; 00129 pd_azimuthVector[24] = -1.4106122448979590e+00; 00130 pd_azimuthVector[23] = -1.2955102040816326e+00; 00131 pd_azimuthVector[22] = -1.1853061224489796e+00; 00132 pd_azimuthVector[21] = -1.0799999999999998e+00; 00133 pd_azimuthVector[20] = -9.7959183673469374e-01; 00134 pd_azimuthVector[19] = -8.8408163265306117e-01; 00135 pd_azimuthVector[18] = -7.9346938775510190e-01; 00136 pd_azimuthVector[17] = -7.0775510204081626e-01; 00137 pd_azimuthVector[16] = -6.2693877551020405e-01; 00138 pd_azimuthVector[15] = -5.5102040816326525e-01; 00139 pd_azimuthVector[14] = -4.8000000000000009e-01; 00140 pd_azimuthVector[13] = -4.1387755102040819e-01; 00141 pd_azimuthVector[12] = -3.5265306122448975e-01; 00142 pd_azimuthVector[11] = -2.9632653061224490e-01; 00143 pd_azimuthVector[10] = -2.4489795918367344e-01; 00144 pd_azimuthVector[9] = -1.9836734693877547e-01; 00145 pd_azimuthVector[8] = -1.5673469387755101e-01; 00146 pd_azimuthVector[7] = -1.2000000000000002e-01; 00147 pd_azimuthVector[6] = -8.8163265306122438e-02; 00148 pd_azimuthVector[5] = -6.1224489795918359e-02; 00149 pd_azimuthVector[4] = -3.9183673469387753e-02; 00150 pd_azimuthVector[3] = -2.2040816326530609e-02; 00151 pd_azimuthVector[2] = -9.7959183673469383e-03; 00152 pd_azimuthVector[1] = -2.4489795918367346e-03; 00153 pd_azimuthVector[0] = 0.0000000000000000e-00; 00154 00155 pd_azimuthVector[269] = -2.0000000000000000e+01; 00156 pd_azimuthVector[270] = -1.9836734693877556e+01; 00157 pd_azimuthVector[271] = -1.9398367346938773e+01; 00158 pd_azimuthVector[272] = -1.8964897959183673e+01; 00159 pd_azimuthVector[273] = -1.8536326530612246e+01; 00160 pd_azimuthVector[274] = -1.8112653061224492e+01; 00161 pd_azimuthVector[275] = -1.7693877551020403e+01; 00162 pd_azimuthVector[276] = -1.7279999999999998e+01; 00163 pd_azimuthVector[277] = -1.6871020408163265e+01; 00164 pd_azimuthVector[278] = -1.6466938775510204e+01; 00165 pd_azimuthVector[279] = -1.6067755102040817e+01; 00166 pd_azimuthVector[280] = -1.5673469387755100e+01; 00167 pd_azimuthVector[281] = -1.5284081632653061e+01; 00168 pd_azimuthVector[282] = -1.4899591836734695e+01; 00169 pd_azimuthVector[283] = -1.4520000000000003e+01; 00170 pd_azimuthVector[284] = -1.4145306122448979e+01; 00171 pd_azimuthVector[285] = -1.3775510204081632e+01; 00172 pd_azimuthVector[286] = -1.3410612244897960e+01; 00173 pd_azimuthVector[287] = -1.3050612244897962e+01; 00174 pd_azimuthVector[288] = -1.2695510204081630e+01; 00175 pd_azimuthVector[289] = -1.2345306122448978e+01; 00176 pd_azimuthVector[290] = -1.2000000000000000e+01; 00177 pd_azimuthVector[291] = -1.1659591836734695e+01; 00178 pd_azimuthVector[292] = -1.1324081632653060e+01; 00179 pd_azimuthVector[293] = -1.0993469387755102e+01; 00180 pd_azimuthVector[294] = -1.0667755102040815e+01; 00181 pd_azimuthVector[295] = -1.0346938775510203e+01; 00182 pd_azimuthVector[296] = -1.0031020408163265e+01; 00183 pd_azimuthVector[297] = -9.7200000000000006e+00; 00184 pd_azimuthVector[298] = -9.4138775510204074e+00; 00185 pd_azimuthVector[299] = -9.1126530612244903e+00; 00186 pd_azimuthVector[300] = -8.8163265306122440e+00; 00187 pd_azimuthVector[301] = -8.5248979591836740e+00; 00188 pd_azimuthVector[302] = -8.2383673469387766e+00; 00189 pd_azimuthVector[303] = -7.9567346938775518e+00; 00190 pd_azimuthVector[304] = -7.6800000000000015e+00; 00191 pd_azimuthVector[305] = -7.4081632653061229e+00; 00192 pd_azimuthVector[306] = -7.1412244897959196e+00; 00193 pd_azimuthVector[307] = -6.8791836734693872e+00; 00194 pd_azimuthVector[308] = -6.6220408163265310e+00; 00195 pd_azimuthVector[309] = -6.3697959183673456e+00; 00196 pd_azimuthVector[310] = -6.1224489795918364e+00; 00197 pd_azimuthVector[311] = -5.8799999999999990e+00; 00198 pd_azimuthVector[312] = -5.6424489795918360e+00; 00199 pd_azimuthVector[313] = -5.4097959183673465e+00; 00200 pd_azimuthVector[314] = -5.1820408163265306e+00; 00201 pd_azimuthVector[315] = -4.9591836734693890e+00; 00202 pd_azimuthVector[316] = -4.7412244897959184e+00; 00203 pd_azimuthVector[317] = -4.5281632653061230e+00; 00204 pd_azimuthVector[318] = -4.3199999999999994e+00; 00205 pd_azimuthVector[319] = -4.1167346938775511e+00; 00206 pd_azimuthVector[320] = -3.9183673469387750e+00; 00207 pd_azimuthVector[321] = -3.7248979591836737e+00; 00208 pd_azimuthVector[322] = -3.5363265306122447e+00; 00209 pd_azimuthVector[323] = -3.3526530612244900e+00; 00210 pd_azimuthVector[324] = -3.1738775510204076e+00; 00211 pd_azimuthVector[325] = -3.0000000000000000e+00; 00212 pd_azimuthVector[326] = -2.8310204081632651e+00; 00213 pd_azimuthVector[327] = -2.6669387755102036e+00; 00214 pd_azimuthVector[328] = -2.5077551020408162e+00; 00215 pd_azimuthVector[329] = -2.3534693877551018e+00; 00216 pd_azimuthVector[330] = -2.2040816326530610e+00; 00217 pd_azimuthVector[331] = -2.0595918367346941e+00; 00218 pd_azimuthVector[332] = -1.9200000000000004e+00; 00219 pd_azimuthVector[333] = -1.7853061224489799e+00; 00220 pd_azimuthVector[334] = -1.6555102040816327e+00; 00221 pd_azimuthVector[335] = -1.5306122448979591e+00; 00222 pd_azimuthVector[336] = -1.4106122448979590e+00; 00223 pd_azimuthVector[337] = -1.2955102040816326e+00; 00224 pd_azimuthVector[338] = -1.1853061224489796e+00; 00225 pd_azimuthVector[339] = -1.0799999999999998e+00; 00226 pd_azimuthVector[340] = -9.7959183673469374e-01; 00227 pd_azimuthVector[341] = -8.8408163265306117e-01; 00228 pd_azimuthVector[342] = -7.9346938775510190e-01; 00229 pd_azimuthVector[343] = -7.0775510204081626e-01; 00230 pd_azimuthVector[344] = -6.2693877551020405e-01; 00231 pd_azimuthVector[345] = -5.5102040816326525e-01; 00232 pd_azimuthVector[346] = -4.8000000000000009e-01; 00233 pd_azimuthVector[347] = -4.1387755102040819e-01; 00234 pd_azimuthVector[348] = -3.5265306122448975e-01; 00235 pd_azimuthVector[349] = -2.9632653061224490e-01; 00236 pd_azimuthVector[350] = -2.4489795918367344e-01; 00237 pd_azimuthVector[351] = -1.9836734693877547e-01; 00238 pd_azimuthVector[352] = -1.5673469387755101e-01; 00239 pd_azimuthVector[353] = -1.2000000000000002e-01; 00240 pd_azimuthVector[354] = -8.8163265306122438e-02; 00241 pd_azimuthVector[355] = -6.1224489795918359e-02; 00242 pd_azimuthVector[356] = -3.9183673469387753e-02; 00243 pd_azimuthVector[357] = -2.2040816326530609e-02; 00244 pd_azimuthVector[358] = -9.7959183673469383e-03; 00245 pd_azimuthVector[359] = -2.4489795918367346e-03; 00246 pd_azimuthVector[360] = 0.0000000000000000e-00; 00247 TwoDimensional::pd_startUp(); 00248 } 00249 00250
1.5.5