Dear everybody,

I'm trying to implement a routing protocole for ad hoc network using ns2,
and I need to get the speed and the direction of a mobile node. I used the
function getVelo() provided by the class Mobilenode but it seems that I
don't know how to do it in an appropriate way. In fact, I thought that
getVelo() allows me to get the velocity vector components (vx,vy) and than
to get the direction (angle teta) I computed the cos and sin using vx and
vy.

Could someone please help me
I would be really grateful

Nadia

Reply via email to