40 #include "../inc/freeEMS.h"
46 #if CONFIG == TRUCK_ID
49 #elif CONFIG == PRESTO_ID
52 #elif CONFIG == SEANKLT1_ID
55 #elif SEANKR1 // No ID assigned yet!
58 #elif CONFIG == SNOTROCKET_ID
61 #elif CONFIG == HOTEL_ID
64 #elif CONFIG == SLATER_ID
67 #elif CONFIG == PETERJSERIES_ID
70 #elif CONFIG == DEUCECOUPE_ID
73 #elif CONFIG == DEUCES10_ID
76 #elif CONFIG == SCAVENGER_ID
91 coarseBitBangSettings:{
92 #if CONFIG == SNOTROCKET_ID // 24 events for a 24+1 CAS setup with 4 cylinder tacho
93 outputActions: {1,0,0,2,0,0,1,0,0,2,0,0,1,0,0,2,0,0,1,0,0,2,0,0},
94 #elif CONFIG == SLATER_ID // 11 events for 12-1 crank setup with 4 cylinder tacho
95 outputActions: {1,0,0,2,0,0,1,0,0,2,0},
106 #if CONFIG == TRUCK_ID // Fred's Ford Courier http://forum.diyefi.org/viewtopic.php?f=55&t=1069
108 outputEventPinNumbers: {0,1,2,3,4,5,4,5},
109 schedulingConfigurationBits: {0,0,0,0,1,1,1,1},
110 decoderEngineOffset:
ANGLE(90.00),
111 numberOfConfiguredOutputEvents: 8,
112 numberOfInjectionsPerEngineCycle: 2
114 #elif CONFIG == HOTEL_ID // Fred's Hotel Hyundai (Stellar) http://forum.diyefi.org/viewtopic.php?f=55&t=1086
116 outputEventPinNumbers: {0, 2},
117 schedulingConfigurationBits: {0, 1},
118 decoderEngineOffset:
ANGLE(170.00),
119 numberOfConfiguredOutputEvents: 2,
120 numberOfInjectionsPerEngineCycle: 4
122 #elif CONFIG == PRESTO_ID // Preston's silver-top-on-a-stand http://forum.diyefi.org/viewtopic.php?f=55&t=1101
124 outputEventPinNumbers: {0,1,0,1,4,5,4,5},
125 schedulingConfigurationBits: {0,0,0,0,1,1,1,1},
126 decoderEngineOffset:
ANGLE(128.52),
127 numberOfConfiguredOutputEvents: 8,
128 numberOfInjectionsPerEngineCycle: 2
130 #elif CONFIG == SEANKLT1_ID // http://forum.diyefi.org/viewtopic.php?f=55&t=1146
131 anglesOfTDC: {
ANGLE(0),
ANGLE(90),
ANGLE(180),
ANGLE(270),
ANGLE(360),
ANGLE(450),
ANGLE(540),
ANGLE(630),
ANGLE(0),
ANGLE(90),
ANGLE(180),
ANGLE(270),
ANGLE(360),
ANGLE(450),
ANGLE(540),
ANGLE(630)},
132 outputEventPinNumbers: {0,0,0,0,0,0,0,0,2,3,4,5,2,3,4,5},
133 schedulingConfigurationBits: {0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1},
134 decoderEngineOffset:
ANGLE(0.00),
135 numberOfConfiguredOutputEvents: 16,
136 numberOfInjectionsPerEngineCycle: 2
138 #elif CONFIG == SNOTROCKET_ID // http://forum.diyefi.org/viewtopic.php?f=3&t=1263 Sim's 2.1 Volvo, semi-squential fuel with CNP using LS1 coils.
140 outputEventPinNumbers: {0,1,2,3,4,5,4,5},
141 schedulingConfigurationBits: {0,0,0,0,1,1,1,1},
142 decoderEngineOffset:
ANGLE(566.00),
143 numberOfConfiguredOutputEvents: 8,
144 numberOfInjectionsPerEngineCycle: 2
146 #elif CONFIG == SPUDMN_ID // http://forum.diyefi.org/viewtopic.php?f=55&t=1507 Spudmn's mk1 racing mini in NZ :-)
148 outputEventPinNumbers: {0,1},
149 schedulingConfigurationBits: {0,0},
150 decoderEngineOffset:
ANGLE(5.00),
151 numberOfConfiguredOutputEvents: 2,
152 numberOfInjectionsPerEngineCycle: 1
154 #elif CONFIG == SLATER_ID // http://forum.diyefi.org/viewtopic.php?f=62&t=1336 Citroen with t25 turbo on a flat 4 air cooled engine
156 outputEventPinNumbers: {0,1,4,5},
157 schedulingConfigurationBits: {0,0,1,1},
158 decoderEngineOffset:
ANGLE(120.00),
159 numberOfConfiguredOutputEvents: 4,
160 numberOfInjectionsPerEngineCycle: 2
162 #elif CONFIG == PETERJSERIES_ID // Firing order 1-4-2-5-3-6 http://forum.diyefi.org/viewtopic.php?f=62&t=1533
164 outputEventPinNumbers: {0,3,1,4,2,5},
165 schedulingConfigurationBits: {1,1,1,1,1,1},
166 decoderEngineOffset:
ANGLE(0.00),
167 numberOfConfiguredOutputEvents: 6,
168 numberOfInjectionsPerEngineCycle: 1
170 #elif CONFIG == DEUCECOUPE_ID // DeuceEFI's GM 3100 V6, firing order 1-6-5-4-3-2, wasted spark DIS ignition http://forum.diyefi.org/viewtopic.php?f=3&t=1278
171 anglesOfTDC: {
ANGLE(0),
ANGLE(120),
ANGLE(240),
ANGLE(360),
ANGLE(480),
ANGLE(600),
ANGLE(0),
ANGLE(120),
ANGLE(240),
ANGLE(360),
ANGLE(480),
ANGLE(600)},
172 outputEventPinNumbers: {0,0,0,0,0,0,2,3,4,2,3,4},
173 schedulingConfigurationBits: {0,0,0,0,0,0,1,1,1,1,1,1},
174 decoderEngineOffset:
ANGLE(0.00),
175 numberOfConfiguredOutputEvents: 12,
176 numberOfInjectionsPerEngineCycle: 2
178 #elif CONFIG == DEUCES10_ID // Firing order 1-3-4-2 setup in wiring harness http://forum.diyefi.org/viewtopic.php?f=55&t=1962
180 outputEventPinNumbers: {0,0,0,0,2,3,4,5},
181 schedulingConfigurationBits: {0,0,0,0,1,1,1,1},
182 decoderEngineOffset:
ANGLE(0.00),
183 numberOfConfiguredOutputEvents: 8,
184 numberOfInjectionsPerEngineCycle: 1
186 #elif CONFIG == PETERTRUCK_ID // Firing order 1-5-3-6-2-4
188 outputEventPinNumbers: {0,4,2,5,1,3},
189 schedulingConfigurationBits: {0,0,0,0,0,0},
190 decoderEngineOffset:
ANGLE(0.00),
191 numberOfConfiguredOutputEvents: 6,
192 numberOfInjectionsPerEngineCycle: 1
194 #elif CONFIG == SCAVENGER_ID // hentai
196 outputEventPinNumbers: {0,1,0,1,2,3,2,3},
197 schedulingConfigurationBits: {0,0,0,0,1,1,1,1},
198 decoderEngineOffset:
ANGLE(128),
199 numberOfConfiguredOutputEvents: 8,
200 numberOfInjectionsPerEngineCycle: 2
202 #else // Nothing scheduled by default, no sensible default for all possible vehicle setups.
204 outputEventPinNumbers: {0,1,2,3,4,5},
205 schedulingConfigurationBits: {},
206 decoderEngineOffset:
ANGLE(0),
207 numberOfConfiguredOutputEvents: 0,
208 numberOfInjectionsPerEngineCycle: 1
211 cutAndLimiterSettings:{
213 #if CONFIG == SNOTROCKET_ID
214 disableThreshold:
RPM(6300),
215 reenableThreshold:
RPM(6200)
216 #elif CONFIG == SLATER_ID
217 disableThreshold:
RPM(7000),
218 reenableThreshold:
RPM(6900)
219 #elif CONFIG == DEUCES10_ID
220 disableThreshold:
RPM(5600),
221 reenableThreshold:
RPM(5400)
222 #elif CONFIG == SCAVENGER_ID
223 disableThreshold:
RPM(7200),
224 reenableThreshold:
RPM(7150)
226 disableThreshold:
RPM(5850),
227 reenableThreshold:
RPM(5800)
231 #if CONFIG == HOTEL_ID
232 disableThreshold:
RPM(5800),
233 reenableThreshold:
RPM(5750)
234 #elif CONFIG == SNOTROCKET_ID
235 disableThreshold:
RPM(6300),
236 reenableThreshold:
RPM(6150)
237 #elif CONFIG == SLATER_ID
238 disableThreshold:
RPM(7000),
239 reenableThreshold:
RPM(6850)
240 #elif CONFIG == PETERJSERIES_ID
241 disableThreshold:
RPM(6000),
242 reenableThreshold:
RPM(5950)
243 #elif CONFIG == PETERTRUCK_ID
244 disableThreshold:
RPM(5000),
245 reenableThreshold:
RPM(4950)
246 #elif CONFIG == DEUCES10_ID
247 disableThreshold:
RPM(5600),
248 reenableThreshold:
RPM(5300)
249 #elif CONFIG == SCAVENGER_ID
250 disableThreshold:
RPM(7200),
251 reenableThreshold:
RPM(7100)
253 disableThreshold:
RPM(5800),
254 reenableThreshold:
RPM(5750)
258 disableThreshold:
KPA(250),
259 reenableThreshold:
KPA(105)
282 #if CONFIG == DEUCECOUPE_ID
285 upperValue:
RPM(400),
286 lowerValue:
RPM(300),
287 port: (
unsigned char*)&
PORTT,
294 upperValue:
RPM(400),
295 lowerValue:
RPM(300),
296 port: (
unsigned char*)&
PORTT,
303 upperValue:
RPM(5000),
304 lowerValue:
RPM(4000),
305 port: (
unsigned char*)&
PORTK,
311 #if CONFIG == HOTEL_ID // Don't need fan control, do need proper Wideband control
313 upperValue:
RPM(700),
314 lowerValue:
RPM(400),
315 #else // Default fan control for everyone else
320 port: (
unsigned char*)&
PORTK,
328 userTextField:
"Place your personal notes about whatever you like in here!"
329 " Don't hesitate to tell us a story about something interesting."
330 " Do keep in mind though that when you upload your settings file to "
331 "the forum this message WILL be visible to all and sundry, so don't "
332 "be putting too many personal details, bank account numbers, "
333 "passwords, PIN numbers, license plates, national insurance numbers, "
334 "IRD numbers, social security numbers, phone numbers, email addresses,"
335 " love stories and other private information in this field. In fact it"
336 " is probably best if you kee"