-
Notifications
You must be signed in to change notification settings - Fork 0
Update delivery/HOLD OPEN timeout to 2 min instead of 1 min #3
Description
The Gate is closing on Delivery Vehicles. To reduce this issue, we want to get to stay open for 2 min instead of just 1 min.
CoPilot code analysis below:
Based on the code in the logic.py file, when a "delivery" access code is entered, the gate stays open for 60 seconds (1 minute).
Here's how it works:
When the access level is "delivery", the code calls gate.open(True) (line 231), which passes isHardOpen=True
This triggers the "HOLD OPEN" mode, which keeps the gate open until the timeout is reached
The timeout duration is defined in the gate class on line 275:
Python
hard_open_timeout = 60 * 1 # 60 seconds
The timeout is enforced in the monitorIsHardOpen() method (line 334), which waits for up to hard_open_timeout seconds. After this period expires, the gate automatically closes.