mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-05-08 06:14:28 +02:00
Update system.py
This commit is contained in:
+1
-1
@@ -360,7 +360,7 @@ def get_closest_nodes(nodeInt=1,returnCount=3):
|
||||
longitude = node['position']['longitude']
|
||||
|
||||
# set radius around BOT position
|
||||
distance = geopy.distance.geodesic((latitudeValue, longitudeValue), (latitude, longitude)).m
|
||||
distance = round(geopy.distance.geodesic((latitudeValue, longitudeValue), (latitude, longitude)).m, 2)
|
||||
|
||||
if (distance < sentry_radius):
|
||||
if nodeID != myNodeNum1 and myNodeNum2 and str(nodeID) not in sentryIgnoreList:
|
||||
|
||||
Reference in New Issue
Block a user