[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] wireless-phy.cc



Hi,

This propagation-calculation is always done for
two packetstamps (e.g. look into the tworayground-
sources): the first one filled out by the
sender and the second one created by the receiver.

The the receiving stamp is just needed to get the
position of the receiving node and the relative
positions it's the antenna. The transmit-power
is just taken from the sending packetstamp.
In this line that you've mentioned, the receiving
packetstamp is being created, so the Pt_ isn't needed.

Hope this helps

Felix


Raju Mansukhlal Shah wrote:
> 
> Hello all,
> 
> Around line 299 in wireless-phy.cc is the following line:
> 
>                 s.stamp(mobilenode(), ant_, 0, lambda_);
> 
> Should this 0 be a Pt_?
> 
> The stamp function calls for a transmit Power for that argument - but we
> want to make sure.
> 
> raju