rport...@gmail.com
unread,May 24, 2013, 6:29:05 AM5/24/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omn...@googlegroups.com
Good afternoon
Can anyone please tell which is the best way to know the position of a fixed host, which has StationaryMobility module, please?
I didn't declare anything related to this in .ini file. Should I ?
Also, how will I call to get the value of this position?
For mobile hosts I did:
cModule *Pos = getParentModule()->getSubmodule("mobility");
TraCIMobility *myPos = check_and_cast<TraCIMobility *>(Pos);
myPos->getCurrentPosition().x, myPos->getCurrentPosition().y
I need to do something similar, but for a fixed host with StationaryMobility module.
Any ideas please?
Thanks in advance