How shehababdelelah/autonomous-case-study- works
This is ESP32 firmware for the CAS Box, a sensor and control unit for a WAVE ROVER. The principal workflow is phone or serial input → box control loop → rover drive commands, with sensor snapshots and status available to the phone. Sensor acquisition, LiDAR navigation geometry, survey reporting, and test logging are distinct supporting capabilities. Edges reflect the sampled source and its index or explicit module documentation; unsampled wiring is not inferred.
Main entry points: Sensors.cpp Sensor facade · main.cpp Control loop · WebHMI.cpp Web HMI · NavSurvey.h Survey report
Components 17
Control and interface
- Control loop
src/main.cpp - Web HMI
src/WebHMI.cpp - OLED display
src/DisplayManager.cpp - Rover link
src/RoverLink.cpp
Sensor acquisition
- Sensor facade
src/Sensors.cpp - Ultrasonic manager
src/UsManager.cpp - LiDAR scan reader
src/LidarScan.h - GPS manager
src/GpsManager.cpp - IMU manager
src/ImuManager.cpp
Navigation and survey
- LiDAR geometry
src/NavLidar.h - Survey report
src/NavSurvey.h - Survey web view
src/NavSurveyWeb.h
Test recording
- Test logger
src/TestLogger.h - Logger web view
src/TestLoggerWeb.h
Other components
- Phone UI
- Serial operator
- WAVE ROVER
Connections 19
- Phone UI → Web HMI: sends drive
- Web HMI → Control loop: provides commands
src/main.cpp - Serial operator → Control loop: sends commands
src/main.cpp - Control loop → Web HMI: ticks and reads
src/main.cpp - Control loop → Sensor facade: updates
src/main.cpp - Control loop → Rover link: sets drive
- Rover link → WAVE ROVER: sends commands
- Sensor facade → Ultrasonic manager: reads distances
- Sensor facade → LiDAR scan reader: uses scan
- Sensor facade → GPS manager: polls GPS
- Sensor facade → IMU manager: updates IMU
- Survey report → LiDAR geometry: uses geometry
src/NavSurvey.h - Survey report → Sensor facade: reads scan
src/NavSurvey.h - Survey web view → Survey report: copies report
src/NavSurveyWeb.h - Test logger → Sensor facade: records readings
src/TestLogger.h - Test logger → LiDAR geometry: uses geometry
src/TestLogger.h - Logger web view → Test logger: serves controls
src/TestLoggerWeb.h - Web HMI → Survey web view: registers view
src/WebHMI.cpp - Web HMI → Logger web view: registers view
src/WebHMI.cpp