fixed GPS log out path
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info location="1" type="DIR_SIGNIFIER"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info location="t1" type="File"/>
|
||||||
Reference in New Issue
Block a user