- ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- How to get the speed and direction of mobileNode in NS2
Participant
Dear Nadia,
I just need a littlt help from you regarding, how can i access the member functions of mobile node e.d dictance(MobileNode *) , dX() etc,
And like how the nodes defined in the main tcl file will be acting as pointer to these functions.
Thanking in anticipation.
Regards,
Mohsin Fayyaz
Participant
Nadia,
Did you use Mobilenode * node in routing.cc ?
Make sure when you call the variables of MobileNode.cc file,
First make an instance of the current node.
Then use this to access the variables of the node’s MobileNode.cc file. Otherwise it will give you garbage value.
Discuss Through WhatsApp