--- a/src/buildings/test/reference/buildings_pathloss.m Mon May 07 13:52:26 2012 +0200
+++ b/src/buildings/test/reference/buildings_pathloss.m Mon May 07 13:52:32 2012 +0200
@@ -46,7 +46,7 @@
% Test #4
d = 1041.2; %m
f = 2114e6;
-g = loss_ITU1411_LOS (d, hb, hm, hr, f);
+g = loss_ITU1411_LOS (d, hb, hm, f);
disp ("Test #4: the value of ITU1411 in LOS is:"), disp (g)
% Test #5
--- a/src/lte/test/reference/lte_pathloss.m Mon May 07 13:52:26 2012 +0200
+++ b/src/lte/test/reference/lte_pathloss.m Mon May 07 13:52:32 2012 +0200
@@ -21,7 +21,7 @@
st_w = 20;
phi = 45;
big = 1; % metropolitan centre
-g = loss_ITU1411_LOS (d, hb, hm, hr, f);
+g = loss_ITU1411_LOS (d, hb, hm, f);
printf ("Test #11: the value of ITU1411 in LOS is: %f\n", g);
d = d = 500.84;
--- a/src/propagation/model/itu-r-1411-los-propagation-loss-model.cc Mon May 07 13:52:26 2012 +0200
+++ b/src/propagation/model/itu-r-1411-los-propagation-loss-model.cc Mon May 07 13:52:32 2012 +0200
@@ -81,7 +81,7 @@
ItuR1411LosPropagationLossModel::SetFrequency (double freq)
{
NS_ASSERT (freq > 0.0);
- m_lambda = 300000000 / freq;
+ m_lambda = 299792458.0 / freq;
}
--- a/src/propagation/model/itu-r-1411-nlos-over-rooftop-propagation-loss-model.cc Mon May 07 13:52:26 2012 +0200
+++ b/src/propagation/model/itu-r-1411-nlos-over-rooftop-propagation-loss-model.cc Mon May 07 13:52:32 2012 +0200
@@ -208,7 +208,7 @@
ItuR1411NlosOverRooftopPropagationLossModel::SetFrequency (double freq)
{
m_frequency = freq;
- m_lambda = 300000000 / freq;
+ m_lambda = 299792458.0 / freq;
}
--- a/src/propagation/test/reference/loss_ITU1411_LOS.m Mon May 07 13:52:26 2012 +0200
+++ b/src/propagation/test/reference/loss_ITU1411_LOS.m Mon May 07 13:52:32 2012 +0200
@@ -1,7 +1,7 @@
-function g = loss_ITU1411_LOS (d, hb, hm, hr, f)
+function g = loss_ITU1411_LOS (d, hb, hm, f)
%%
- %% function g = loss_ITU1411_LOS(d, hb, hm, hr, f)
+ %% function g = loss_ITU1411_LOS(d, hb, hm, f)
%%
%% returns the loss at d meters for f frequency and mobile height m and
%% base station height of hb
@@ -10,7 +10,7 @@
assert(f > 0);
- lambda = 300000000.0 / f;
+ lambda = 299792458 / f;
Lbp = abs(20*log10(lambda^2/(8*pi*hb*hm)));
Rbp = (4*hb*hm) / lambda;
if (d<=Rbp)
--- a/src/propagation/test/reference/loss_ITU1411_NLOS_over_rooftop.m Mon May 07 13:52:26 2012 +0200
+++ b/src/propagation/test/reference/loss_ITU1411_NLOS_over_rooftop.m Mon May 07 13:52:32 2012 +0200
@@ -10,7 +10,7 @@
assert(f > 0);
- lambda = 300000000.0 / f;
+ lambda = 299792458 / f;
fmhz = f/1e6;
Dhb = hb - hr;
ds = (lambda*d*d)/(Dhb*Dhb);