[ns] How to get a mobile node's current position

2008-07-23 Thread Liceven
, any suggestion is welcome. Regards. Liceven -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html Sent from the ns-users mailing list archive at Nabble.com.

Re: [ns] How to get a mobile node's current position

2008-07-23 Thread Liceven
f n1's starting position. but it could not record the coordinate dynamically. So, If I want to implement this dynamic function, what should i do? thanks very much. Liceven Liceven wrote: > > Hello,everyone: > I want to simulate a wireless scenario with two access points and

Re: [ns] How to get a mobile node's current position

2008-07-24 Thread Liceven
’. Pay attention that node($i) is an array[I still havn't found the reason yet]. And this function record will help me to finish the job[record a mobile node’s position (x,y) every 0.5 second] And, I think I will think over your idea when i get enough knowledge about NS. Thanks very muc

Re: [ns] How to get a mobile node's current position

2008-07-24 Thread Liceven
’. Pay attention that node($i) is an array[I still havn't found the reason yet]. And this function record will help me to finish the job[record a mobile node’s position (x,y) every 0.5 second] And, I think I will think over your idea when i get enough knowledge about NS. Thanks very muc

Re: [ns] Calculate Signal strength in ns2

2008-08-31 Thread Liceven
kindly to give me an example to show how it works. THanks very much Regards. Liceven Daniel Rother wrote: > > > Hi, > I've got the same problem. In tcl I haven't found a solution. I > thougth there is something easy like "set strength [$node set > s

Re: [ns] Calculate Signal strength in ns2

2008-08-31 Thread Liceven
ng power at distance double Pr = Friis(t->getTxPr(), Gt, Gr, lambda, L, d); // warning: use of `l' length character with `f' type character // - Sally Floyd, FreeBSD. printf("%lf: d: %lf, Pr: %e\n", Scheduler::instance().clock(), d, Pr);

[ns] How to call a function in C++ file

2008-09-03 Thread Liceven
Hello,All, I want to calculate the signal strength received from two access points in free space. And I find there is a function called double FreeSpace::Pr(PacketStamp *t, PacketStamp *r, WirelessPhy *ifp) {...}[ns-2.31/mobile/propagation.cc] But, I don't know how to call this function to cal