add geo to grpc calls getting node values, updated emane position hook to set lon/lat/alt values

This commit is contained in:
Blake Harnden 2020-05-30 14:24:38 -07:00
parent d31cfedde9
commit c6a06baf29
2 changed files with 5 additions and 0 deletions

View file

@ -202,6 +202,7 @@ class EmaneNet(CoreNetworkBase):
lat, lon, alt = self.session.location.getgeo(x, y, z)
if node.position.alt is not None:
alt = node.position.alt
node.position.set_geo(lon, lat, alt)
# altitude must be an integer or warning is printed
alt = int(round(alt))
return nemid, lon, lat, alt