From cdda49d59ef8c4b6bf69bb71eecf872dc2bfe480 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sun, 7 Sep 2025 12:08:01 +0200 Subject: [PATCH] Fix jwt-token --- test_orlan_detection.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test_orlan_detection.py b/test_orlan_detection.py index 738c46a..a2fa37c 100644 --- a/test_orlan_detection.py +++ b/test_orlan_detection.py @@ -241,13 +241,18 @@ def run_orlan_detection_test(): # Use the first device as target target_device = devices[0] print(f"🎯 Target Device: {target_device['name']}") - print(f"📍 Target Location: {target_device['geo_lat']:.6f}, {target_device['geo_lon']:.6f}") + + # Ensure coordinates are floats + target_lat = float(target_device['geo_lat']) + target_lon = float(target_device['geo_lon']) + + print(f"📍 Target Location: {target_lat:.6f}, {target_lon:.6f}") # Calculate starting position 50km away (due north for simplicity) start_distance = 50.0 # km # Move 50km north of target - start_lat = target_device['geo_lat'] + (start_distance / 111.0) # ~111km per degree latitude - start_lon = target_device['geo_lon'] # Same longitude + start_lat = target_lat + (start_distance / 111.0) # ~111km per degree latitude + start_lon = target_lon # Same longitude print(f"🛫 Orlan Starting Position: {start_lat:.6f}, {start_lon:.6f}") print(f"📏 Initial Distance: {float(start_distance):.1f}km") @@ -279,7 +284,7 @@ def run_orlan_detection_test(): # Calculate current position current_lat, current_lon = calculate_position_along_path( start_lat, start_lon, - target_device['geo_lat'], target_device['geo_lon'], + target_lat, target_lon, progress )