[ns] Is antenna position relative to node position?
Leyond
feixianyexin at 163.com
Fri Oct 10 02:56:21 PDT 2008
Hi,
I want to calculate the value of received signal strength, so I need to
know the position of Mobile Node and Access Point. And I found something
interesting in the file mobile/propagation.cc
Xr += r->getAntenna()->getX();
Yr += r->getAntenna()->getY();
Zr += r->getAntenna()->getZ();
Xt += t->getAntenna()->getX();
Yt += t->getAntenna()->getY();
Zt += t->getAntenna()->getZ();
And I print out these values :
Xt 589.478206: Yt 489.478206,Zt 0.250000:Xr 589.478206,Yr 489.478206:Zr
0.250000
Xt 600.000000: Yt 500.000000,Zt 0.250000:Xr 600.000000,Yr 500.000000:Zr
0.250000
Xt 589.487894: Yt 489.487894,Zt 0.250000:Xr 589.487894,Yr 489.487894:Zr
0.250000
Xt 620.503211: Yt 520.503211,Zt 0.250000:Xr 620.503211,Yr 520.503211:Zr
0.250000
.....
To my surprise is that the values of Xt,Yt are variant which are supposed to
be invariable because the AP is fixed. So, How to explain these codes? Is
antenna position relative to node position?
Thanks very much
Leyond
--
View this message in context: http://www.nabble.com/Is-antenna-position-relative-to-node-position--tp19915340p19915340.html
Sent from the ns-users mailing list archive at Nabble.com.
More information about the Ns-users
mailing list