|
Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
|
Gate interface for barrier control abstraction. More...
#include <IGate.h>

Public Member Functions | |
| virtual | ~IGate ()=default |
| virtual void | open ()=0 |
| Open the barrier. | |
| virtual void | close ()=0 |
| Close the barrier. | |
| virtual bool | isOpen () const =0 |
| Check if barrier is currently open. | |
| virtual bool | isCarDetected () const =0 |
| Check if car is detected in light barrier. | |
Gate interface for barrier control abstraction.
This interface abstracts the physical gate components (button, light barrier, motor) allowing the gate controller logic to be independent of hardware specifics.
|
virtualdefault |
|
pure virtual |
Close the barrier.
Implemented in Gate.
|
pure virtual |
Check if car is detected in light barrier.
Implemented in Gate.
|
pure virtual |
Check if barrier is currently open.
Implemented in Gate.
|
pure virtual |
Open the barrier.
Implemented in Gate.