How leidensie/aquatic-waste-collector-robot works
This is embedded boat-control firmware: a remote controller sends forward/direction commands over UDP, the main loop mixes them into left/right thrust, and periodically reports distance while checking for water ingress. The runtime entry point orchestrates UDP communication, distance sensing, water detection, and motor output. Hardware interactions are represented by their driver components. Evidence is limited to the supplied source excerpts; no README capabilities were documented.
Main entry points: main.cpp Main loop · UdpCom.cpp UDP communication · DistanceControl.cpp Distance sensing · WaterSensor.cpp Water detection
Components 9
Control runtime
- Main loop
src/main.cpp - UDP communication
src/UdpCom.cpp
Device I/O
- Distance sensing
src/DistanceControl.cpp - Water detection
src/WaterSensor.cpp - Motor drivers
src/MotorDriver.cpp
Other components
- Remote controller
- Ultrasonic sensor
- Water sensor
- Boat motors
Connections 9
- Remote controller → UDP communication: sends commands
src/UdpCom.cpp - UDP communication → Remote controller: sends telemetry
src/UdpCom.cpp - Main loop → UDP communication: starts, listens, sends
src/main.cpp - Main loop → Distance sensing: reads distance
src/main.cpp - Main loop → Water detection: checks ingress
src/main.cpp - Main loop → Motor drivers: sets thrust
src/main.cpp - Distance sensing → Ultrasonic sensor: measures range
src/DistanceControl.cpp - Water detection → Water sensor: reads level
src/WaterSensor.cpp - Motor drivers → Boat motors: drives thrust
src/MotorDriver.cpp