updated long to use lon in emane code to avoid name conflicts in 2.7
This commit is contained in:
parent
948b1126ba
commit
14fc16832d
1 changed files with 3 additions and 3 deletions
|
@ -199,12 +199,12 @@ class EmaneNode(EmaneNet):
|
||||||
logging.info("nemid for %s is unknown" % ifname)
|
logging.info("nemid for %s is unknown" % ifname)
|
||||||
continue
|
continue
|
||||||
x, y, z = netif.node.getposition()
|
x, y, z = netif.node.getposition()
|
||||||
lat, long, alt = self.session.location.getgeo(x, y, z)
|
lat, lon, alt = self.session.location.getgeo(x, y, z)
|
||||||
logging.info("setnempositions %d %s (%s) x,y,z=(%d,%d,%s)(%.6f,%.6f,%.6f)",
|
logging.info("setnempositions %d %s (%s) x,y,z=(%d,%d,%s)(%.6f,%.6f,%.6f)",
|
||||||
i, ifname, nemid, x, y, z, lat, long, alt)
|
i, ifname, nemid, x, y, z, lat, lon, alt)
|
||||||
# altitude must be an integer or warning is printed
|
# altitude must be an integer or warning is printed
|
||||||
alt = int(round(alt))
|
alt = int(round(alt))
|
||||||
event.append(nemid, latitude=lat, longitude=long, altitude=alt)
|
event.append(nemid, latitude=lat, longitude=lon, altitude=alt)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
self.session.emane.service.publish(0, event)
|
self.session.emane.service.publish(0, event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue