Fix jwt-token
This commit is contained in:
@@ -241,13 +241,18 @@ def run_orlan_detection_test():
|
|||||||
# Use the first device as target
|
# Use the first device as target
|
||||||
target_device = devices[0]
|
target_device = devices[0]
|
||||||
print(f"🎯 Target Device: {target_device['name']}")
|
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)
|
# Calculate starting position 50km away (due north for simplicity)
|
||||||
start_distance = 50.0 # km
|
start_distance = 50.0 # km
|
||||||
# Move 50km north of target
|
# Move 50km north of target
|
||||||
start_lat = target_device['geo_lat'] + (start_distance / 111.0) # ~111km per degree latitude
|
start_lat = target_lat + (start_distance / 111.0) # ~111km per degree latitude
|
||||||
start_lon = target_device['geo_lon'] # Same longitude
|
start_lon = target_lon # Same longitude
|
||||||
|
|
||||||
print(f"🛫 Orlan Starting Position: {start_lat:.6f}, {start_lon:.6f}")
|
print(f"🛫 Orlan Starting Position: {start_lat:.6f}, {start_lon:.6f}")
|
||||||
print(f"📏 Initial Distance: {float(start_distance):.1f}km")
|
print(f"📏 Initial Distance: {float(start_distance):.1f}km")
|
||||||
@@ -279,7 +284,7 @@ def run_orlan_detection_test():
|
|||||||
# Calculate current position
|
# Calculate current position
|
||||||
current_lat, current_lon = calculate_position_along_path(
|
current_lat, current_lon = calculate_position_along_path(
|
||||||
start_lat, start_lon,
|
start_lat, start_lon,
|
||||||
target_device['geo_lat'], target_device['geo_lon'],
|
target_lat, target_lon,
|
||||||
progress
|
progress
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user