[情報] 讓 ns2 trace 出現 power 的方法
1. 打開 /trace/cmu-trace.cc
2. 移到 CMUTrace::format_mac_common
3. 移到 if (newtrace_) 內的 sprintf
formatted string 內加入 "-TxPower %e -RxPower %e "
對應的變數為 p->txinfo_.getTxPr(), p->txinfo_.RxPr
4. 存檔, 重新compile即可
其實, 加在別的地方也可以啦! 看你高興而已
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.42.171