09-03-2015, 08:23 PM | #1 |
Private
24
Rep 87
Posts |
Coding: Delay after folding mirrors
I have coded my car to open and close windows, mirrors and sunroof using CA and key fob. In general it works, but not quite like I want it.
Here is what I would like to achieve: 1. Whenever I lock the car using single press of the lock button on key fob, I'd like to fold the mirrors immediately. 2. If I keep holding the lock button, it should close windows and sunroof. 3. Optionally: similar behavior with CA. Touching the door handle for 1 second should lock the car and fold mirrors, holding it for longer than 1 second should close windows and sunroof. Code:
KOMFORTSCHLIESSUNG_FB aktiv KOMFORTSCHLIESSUNG_PA aktiv ASP_BEIKLAPPEN_BEI_KOMFORTSCHLIESSEN aktiv KOMFORT_SCHLIESSEN 0 // delays between closing windows and roof KOMFORT_SCHL_VORNE werte 15 (1500ms) KOMFORT_SCHL_SHD werte 15 (1500ms) |
09-03-2015, 08:38 PM | #2 | |
Major General
1399
Rep 5,262
Posts |
Quote:
also hex 15 is not 1500ms... it's 2100ms |
|
Appreciate
0
|
09-04-2015, 08:47 AM | #3 |
Private
24
Rep 87
Posts |
|
Appreciate
0
|
09-06-2015, 12:50 PM | #4 | |
Private
24
Rep 87
Posts |
Quote:
Played a little with the key fob and noticed this: if windows are not closed, then briefly hitting 'Lock' button will lock the car, fold the mirrors and move the windows up for about a half inch. Tried it a dozen of times, and it is pretty consistent. When the windows are closed, and the roof is fully open, then locking the car will cause the roof to move a little. If the roof is tilted, then it is a crapshot - could move it a little or close it all the way down. I guess the 'Lock' button logic is defined something like this: 1. Lock the car and wait for KOMFORT_SCHLIESSEN time 2. Fold Mirrors and Check Windows 2.1. If windows down, start closing them. When closed wait for KOMFORT_SCHL_SHD time 3. If roof is not closed, start closing the roof. So, if window are already closed than the KOMFORT_SCHL_SHD delay is ignored. |
|
Appreciate
0
|
Post Reply |
Bookmarks |
|
|