small cleanup for interface position hooks, updates to support using a provided altitude when sending emane events based on position hooks
This commit is contained in:
parent
102fa410fe
commit
3f17706c28
9 changed files with 76 additions and 61 deletions
|
@ -806,6 +806,7 @@ class Session:
|
|||
using_lat_lon_alt = has_empty_position and has_lat_lon_alt
|
||||
if using_lat_lon_alt:
|
||||
x, y, _ = self.location.getxyz(lat, lon, alt)
|
||||
node.position.set_geo(lon, lat, alt)
|
||||
|
||||
# set position and broadcast
|
||||
if None not in [x, y]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue