fixed GPS log out path

This commit is contained in:
2026-03-04 18:21:39 -08:00
parent e801018d9c
commit 12b6e79f1e
5 changed files with 11 additions and 2 deletions

View File

@@ -116,8 +116,9 @@ def _gps_log_row(vehicle, line_num, writer):
async def _gps_log_loop(drone): async def _gps_log_loop(drone):
"""Background async task that logs GPS data at 1Hz.""" """Background async task that logs GPS data at 1Hz."""
host = platform.node() results_dir = os.environ.get('RESULTS_DIR', '/root/Results')
filename = f"/root/Results/GPS_DATA_{host}_{datetime.datetime.now().strftime('%Y-%m-%d_%H:%M:%S')}.csv" log_prefix = os.environ.get('LOG_PREFIX', datetime.datetime.now().strftime('%Y-%m-%d_%H_%M_%S'))
filename = os.path.join(results_dir, f"{log_prefix}_gps_log.csv")
print(f"[UAV] GPS logging to {filename}") print(f"[UAV] GPS logging to {filename}")
line_num = 1 line_num = 1
try: try:

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info location="1" type="DIR_SIGNIFIER"/>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info location="t1" type="File"/>