4 Commits

Author SHA1 Message Date
fd286e6a9e Add episode recording functionality and enhance serial communication handling
- Introduced record_episode.py for capturing ESP32 IMU data and RealSense images.
- Added SwitchChangeDetector and SwitchLevelController for managing recording triggers.
- Enhanced ESP32Bridge with new methods for reading samples and latest packets.
- Updated verify.py and visualise.py to improve serial communication stability.
- Modified .gitignore to include dataset, csv, and png directories.
2026-07-03 10:53:49 +08:00
e0f777837b Add linear velocity calculation and visualization to IMU data processing
- Implemented Euler to rotation matrix conversion for IMU data.
- Added function to compute linear velocity from accelerometer data with gravity compensation.
- Enhanced CSV and PNG saving functionality to automatically create directories.
- Updated statistics printing to include linear acceleration and velocity metrics.
- Expanded plotting functionality to visualize linear acceleration and velocity alongside existing data.
- Added new PNG files for IMU quality visualization.
2026-07-01 17:29:58 +08:00
f33a3f1886 Enhance IMU data visualization and file handling
- Updated `main.py` to include a flag for real GPIO output control.
- Added a new function in `visualise.py` to generate unique file paths for CSV and plot outputs by appending timestamps if the file already exists.
- Modified CSV and plot saving logic to utilize the new unique path function, ensuring no overwriting of existing files.
- Introduced a new image file `imu_quality_20260701_131902.png` and updated the existing `imu_quality.png`.
2026-07-01 13:21:15 +08:00
443705ced3 Feat: visualization code implemented 2026-06-24 13:27:18 +08:00