[情報] 讓 ns2 trace 出現 power 的方法

看板NTUEE_WMN作者 (tell me you love me)時間18年前 (2008/01/09 11:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #17X3dgzM (NTUEE_WMN)