mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-06-16 16:15:01 +02:00
Update mesh-bot.py
This commit is contained in:
+4
-3
@@ -217,9 +217,10 @@ def get_node_location(number):
|
||||
if number == node['num']:
|
||||
if 'position' in node:
|
||||
print (f"DEBUG: {node['position']}")
|
||||
for data in node['position']:
|
||||
print (f"DEBUG: {data}")
|
||||
print (f"{log_timestamp()} System: Using location data for {number}")
|
||||
latitude = node['position']['latitude']
|
||||
longitude = node['position']['longitude']
|
||||
print (f"location data for {number} is {latitude},{longitude}")
|
||||
#position = [latitude,longitude]
|
||||
position = [0,0]
|
||||
return position
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user