|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#3
|
|||
|
|||
|
Try this...
Posted by Joe Johnson at 03/12/2001 12:57 PM EST
Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems. In Reply to: NEED HELP with Delay loop for compressor relay switch Posted by Erik on 03/12/2001 11:54 AM EST: pressure var rc_swX.bitX pump_on var relayX.bitX DELAY_COUNT CON 40 cnt var byte 'assumes delta_t is used cnt = 0 mainloop: 'get data from master CPU cnt = (cnt + delta_t) * (1 - pressure) MAX DELAY_COUNT if (pressure = 1) or (cnt |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Actual execution time measurement | Dan | Technical Discussion | 5 | 24-03-2003 11:36 |
| spike for pressure switch? | Rob Colatutto | Rules/Strategy | 4 | 23-02-2003 15:42 |
| Using a switch before autonomous operation | KZos550 | Programming | 11 | 04-02-2003 19:12 |
| 1 or 2 phase switch | archiver | 2001 | 0 | 24-06-2002 00:48 |
| Need help with 255 Variable | Joseph F | Programming | 18 | 26-02-2002 14:49 |