How two-four-team/two_four works
This is a C-based virtual vehicle body-convenience simulator: users provide timestamped vehicle-state CSV rows, and the program evaluates lighting, wipers, door locking, and cluster warnings at each simulated cycle before writing a text log. The graph preserves the input/time handling, sensor and vehicle-state validity, each distinct control domain, and warning prioritization. The main loop excerpt supports its orchestration and output; feature relationships are shown where the sampled implementation or README documents them. Other README-described capabilities are included without inferring unsampled internal calls.
Main entry points: main.c Simulation loop · vehicle_control.h Control data contract · input.csv Vehicle-state CSV · sensor.c Sensor fault checks
Components 12
Simulation runtime
- Simulation loop
Common/main.c - Control data contract
Common/vehicle_control.h
State and sensing
- Receive validity
Common/main.c - Sensor fault checks
sensor/sensor.c
Body controls
- Headlight control
HeadLight/headLight.c - Wiper control
Wiper/Wiper.c - Door lock control
Door/Door.c
Warnings
- Open-door detection
Door/Door.c - Warning selection
Dashboard Warning/ClusterWarning.c
Other components
- Scenario author
- Vehicle-state CSV
input/input.csv - Simulation text log
output
Connections 16
- Scenario author → Vehicle-state CSV: authors scenario
README.md - Vehicle-state CSV → Simulation loop: provides rows
README.md - Simulation loop → Receive validity: computes timeouts
Common/main.c - Simulation loop → Sensor fault checks: checks sensor values
sensor/sensor.c - Simulation loop → Headlight control: calls control
HeadLight/headLight.c - Simulation loop → Wiper control: calls control
Wiper/Wiper.c - Simulation loop → Door lock control: calls control
Door/Door.c - Simulation loop → Open-door detection: checks open doors
Door/Door.c - Simulation loop → Warning selection: selects warning
Dashboard Warning/ClusterWarning.c - Simulation loop → Simulation text log: writes results
README.md - Control data contract → Headlight control: defines interface
Common/vehicle_control.h - Control data contract → Wiper control: defines interface
Common/vehicle_control.h - Control data contract → Door lock control: defines interface
Common/vehicle_control.h - Control data contract → Open-door detection: defines interface
Common/vehicle_control.h - Control data contract → Sensor fault checks: defines interface
Common/vehicle_control.h - Control data contract → Warning selection: defines interface
Common/vehicle_control.h