This project is a functional simulation of an automotive power window system, implemented in C and structured around a Finite State Machine (FSM) architecture. The design emphasizes deterministic behavior, safety compliance, and clear state transitions, which are critical characteristics of automotive embedded systems.
Key automotive concepts such as anti-pinch protection, child lock functionality, boundary validation, and event logging are implemented to reflect industry-standard power window controllers (e.g., FMVSS 118 safety principles). Although the system runs as a console application, the logic is directly transferable to microcontroller-based environments.
-
GCC compiler
-
Windows, Linux, or macOS
-
Clone the repository
git clone https://github.com/hdezj-leslye/power-window-simulator.git cd power-window-simulator -
Compile
gcc main.c -o window_simr -
Run
./window_sim
Distributed under the Unlicense License. See LICENSE for more information.
