On Sat, Jun 21, 2008 at 2:13 AM, jiwen zhang <[EMAIL PROTECTED]> wrote:
> Hello Omprakash :
> i think the last four commands (numNeighbors() ,
> getNeighborLinkQuality(uint8_t neighbor),getNeighborRouteQuality(uint8_t
> neighbor) and getNeighborAddr(uint8_t neighbor)) are provided for the users
> of CTP to get the information of the routetable , because i don't see they
> are used in other components . ???
Yes.
> How do you want to fix them ? does the way like
> command uint16_t CtpInfo.getNeighborLinkQuality(uint8_t n) {
> return (n < routingTableActive)? evaluateEtx(call
> LinkEstimator.getLinkQuality(routingTable[n].neighbor)):0xffff;
> }
> command uint16_t CtpInfo.getNeighborRouteQuality(uint8_t n) {
> return (n < routingTableActive)? evaluateEtx(call
> LinkEstimator.getLinkQuality(routingTable[n].neighbor)) +
> routingTable[n].info.etx:0xfffff;
> }
Yes.
> because i don't find they are called in other components , so i think i only
> need to change these . am i right ? are there any other places i need to
> change ?
No need to change anything else.
- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help