Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[omnetpp] rssi in snrEval
Hi experts,
I have a question on RSSI computation in SnrEval.cc upon FIRST message
reception.
In SnrEval.cc:
void SnrEval::initialize(int stage)
{
BasicSnrEval::initialize(stage);
if(stage==0){
.....
rssi.setRSSI(thermalNoise);
....}
else if(stage == 1) {
.....
noiseLevel = thermalNoise;
....}
}
void SnrEval::handleLowerMsgStart(AirFrame *frame)
{
....
noiseLevel += rcvdPower;
rssi.setRSSI(rssi.getRSSI() + noiseLevel); //HERE,
rssi=thermalNoise+thermalNoise+rcvdPower (##)
....}
....
}
at ## above, should not it be
rssi=thermalNoise+rcvdPower?
Why do you add the thermal noise twice?
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php
Home |
Main Index |
Thread Index