fix: data record bug

This commit is contained in:
raiots 2024-06-23 15:28:14 +08:00
parent 023793651d
commit 01b4131b95
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class DataRecorder:
self.video_folder = self.root_folder / 'video'
self.video_folder.mkdir(parents=True, exist_ok=False)
with open(str(self.root_folder) + 'sensor_data.csv', mode='a', newline='') as file:
with open(str(self.root_folder) + '/sensor_data.csv', mode='a', newline='') as file:
self.writer = csv.DictWriter(file, fieldnames=['timestamp', 'mid', 'x', 'y', 'z', 'mpry', 'pitch', 'roll', 'yaw', 'vgx', 'vgy', 'vgz', 'templ', 'temph', 'tof', 'h', 'bat', 'baro', 'time', 'agx', 'agy', 'agz'])
self.writer.writeheader()