Hello, Thank you very much, your suggestion solved the problem. --- On Thu, 3/25/10, Sergio Luis O. B. Correia <[email protected]> wrote:
From: Sergio Luis O. B. Correia <[email protected]> Subject: Re: [ns] node position returns all the time zero To: "Ghofrane" <[email protected]> Cc: [email protected] Date: Thursday, March 25, 2010, 2:33 PM Hello, On Thu, Mar 25, 2010 at 10:20 AM, Ghofrane <[email protected]> wrote: > > Hi > I want to know the current position of a node, but when I write this: > node_ = (MobileNode*)Node::get_node_by_address(ra_addr()); > ((MobileNode *)Node::get_node_by_address(ra_addr()))->getLoc(&x, &y,&z); > > tcl.evalf("puts \" (sendHello) x position is %d :\"",x); try changing %d into %f att, sergio > > It returns all the time 0 ! > Do you have any suggestion to solve this problem ? > Thank you. > > > > > > -- Computer Networks and Security Laboratory (LARCES) State University of Ceara (UECE/Brazil)
