FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
FuelTables.c
Go to the documentation of this file.
1 /* FreeEMS - the open source engine management system
2  *
3  * Copyright 2008-2013 Fred Cooke
4  *
5  * This file is part of the FreeEMS project.
6  *
7  * FreeEMS software is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * FreeEMS software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
19  *
20  * We ask that if you make any changes to this file you email them upstream to
21  * us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
22  *
23  * Thank you for choosing FreeEMS to run your engine!
24  */
25 
26 
27 /** @file
28  *
29  * @ingroup dataInitialisers
30  *
31  * @brief Fuel VE and Lambda tables
32  *
33  * This file contains the definitions of the primary group VE and lambda
34  * tables. The declaration can be found in the global constants header file.
35  *
36  * @note At least one Doxygen bug prevents the data structures below being show
37  * correctly in the documentation for this file. Please see the source
38  * code itself for more information.
39  */
40 
41 
42 #include "../inc/freeEMS.h"
43 
44 
45 #ifndef VETableMainFlashV
46 #define VETableMainFlashV VETableMainFlash
47 #define VETableSecondaryFlashV VETableSecondaryFlash
48 #define AirflowTableFlashV AirflowTableFlash
49 #define LambdaTableFlashV LambdaTableFlash
50 #endif
51 
52 
54 #if CONFIG == DEFAULT_ID
55  RPMLength: MAINTABLE_RPM_LENGTH,
56  LoadLength: MAINTABLE_LOAD_LENGTH,
57 #elif CONFIG == DEUCES10_ID
58  RPMLength: 13,
59  LoadLength: 10,
60 #elif CONFIG == SCAVENGER_ID
61  RPMLength: 24,
62  LoadLength: 19,
63 #elif CONFIG == SNOTROCKET_ID
64  RPMLength: 12,
65  LoadLength: 8,
66 #else
67  RPMLength: 16,
68  LoadLength: 16,
69 #endif
70  RPM: {
71 #if CONFIG == TRUCK_ID
72 #include "../data/tables/axis/FredsTruck-RPM.h"
73 #elif CONFIG == HOTEL_ID
74 #include "../data/tables/axis/HotelHyundai-RPM.h"
75 #elif CONFIG == PRESTO_ID
76 #include "../data/tables/axis/FredsTruck-RPM.h"
77 #elif CONFIG == SEANKLT1_ID
78 #include "../data/tables/axis/SeansLT1-RPM.h"
79 #elif SEANKR1 // No ID assigned yet!
80 #include "../data/tables/axis/FredsTruck-RPM.h"
81 #elif CONFIG == SLATER_ID
82 #include "../data/tables/axis/Slater-RPM.h"
83 #elif CONFIG == PETERJSERIES_ID
84 #include "../data/tables/axis/PetersJSeries-RPM.h"
85 #elif CONFIG == DEUCECOUPE_ID
86 #include "../data/tables/axis/HotelHyundai-RPM.h"
87 #elif CONFIG == DEUCES10_ID
88 #include "../data/tables/axis/Deuces3100-RPM.h"
89 #elif CONFIG == SCAVENGER_ID
90 #include "../data/tables/axis/ScavengersMiata-RPM.h"
91 #elif CONFIG == SNOTROCKET_ID
92 #include "../data/tables/axis/SimsVolvo-RPM.h"
93 #elif CONFIG == DEFAULT_ID
94 #include "../data/tables/axis/DefaultWith400Spacing-RPM.h"
95 #else
96 #include "../data/tables/axis/FredsTruck-RPM.h"
97 #endif
98  },
99  Load: {
100 #if CONFIG == TRUCK_ID
101 #include "../data/tables/axis/FredsTruck-Load.h"
102 #elif CONFIG == HOTEL_ID
103 #include "../data/tables/axis/HotelHyundai-Load.h"
104 #elif CONFIG == PRESTO_ID
105 #include "../data/tables/axis/FredsTruck-Load.h"
106 #elif CONFIG == SEANKLT1_ID
107 #include "../data/tables/axis/FredsTruck-Load.h"
108 #elif SEANKR1 // No ID assigned yet!
109 #include "../data/tables/axis/FredsTruck-Load.h"
110 #elif CONFIG == SLATER_ID
111 #include "../data/tables/axis/Slater-Load.h"
112 #elif CONFIG == PETERJSERIES_ID
113 #include "../data/tables/axis/PetersJSeries-Load.h"
114 #elif CONFIG == DEUCECOUPE_ID
115 #include "../data/tables/axis/HotelHyundai-Load.h"
116 #elif CONFIG == DEUCES10_ID
117 #include "../data/tables/axis/Deuces3100-Load.h"
118 #elif CONFIG == SCAVENGER_ID
119 #include "../data/tables/axis/ScavengersMiata-Load.h"
120 #elif CONFIG == SNOTROCKET_ID
121 #include "../data/tables/axis/SimsVolvo-Load.h"
122 #elif CONFIG == DEFAULT_ID
123 #include "../data/tables/axis/DefaultWith10and20SplitSpacing-Load.h"
124 #else
125 #include "../data/tables/axis/FredsTruck-Load.h"
126 #endif
127  },
128  Table: {
129 #if CONFIG == TRUCK_ID
130 #include "../data/tables/ve/FredsTruckVE.h"
131 #elif CONFIG == HOTEL_ID
132 #include "../data/tables/ve/HotelHyundaiVE.h"
133 #elif CONFIG == PRESTO_ID
134 #include "../data/tables/ve/flat60Percent.h"
135 #elif CONFIG == SEANKLT1_ID
136 #include "../data/tables/ve/SeansLT1VE.h"
137 #elif SEANKR1 // No ID assigned yet!
138 #include "../data/tables/ve/flat80Percent.h"
139 #elif CONFIG == SLATER_ID
140 #include "../data/tables/ve/SlaterVE.h"
141 #elif CONFIG == PETERJSERIES_ID
142 #include "../data/tables/ve/PetersJSeriesVE.h"
143 #elif CONFIG == DEUCECOUPE_ID
144 #include "../data/tables/ve/flat60Percent.h"
145 #elif CONFIG == DEUCES10_ID
146 #include "../data/tables/ve/DeucesS10VE.h"
147 #elif CONFIG == SCAVENGER_ID
148 #include "../data/tables/ve/ScavengerVE24RPMx19Load.h"
149 #elif CONFIG == SNOTROCKET_ID
150 #include "../data/tables/ve/SimsVolvoVE.h"
151 #elif CONFIG == DEFAULT_ID
152 #include "../data/tables/ve/DefaultVE24RPMx19Load.h"
153 #else
154 #include "../data/tables/ve/flat60Percent.h"
155 #endif
156  }
157 };
158 
159 
161  RPMLength: MAINTABLE_RPM_LENGTH,
162  LoadLength: MAINTABLE_LOAD_LENGTH,
163  RPM:{
164  #include "../data/tables/axis/DefaultWith400Spacing-RPM.h"
165  },
166  Load:{
167  #include "../data/tables/axis/DefaultWith10and20SplitSpacing-Load.h"
168  },
169  Table:{
170  #include "../data/tables/ve/DefaultVE24RPMx19Load.h"
171  }
172 };
173 
174 
175 const volatile mainTable AirflowTableFlashV FUELTABLESD = {
176  RPMLength: MAINTABLE_RPM_LENGTH,
177  LoadLength: MAINTABLE_LOAD_LENGTH,
178  RPM:{
179  #include "../data/tables/axis/DefaultWith400Spacing-RPM.h"
180  },
181  Load:{
182  #include "../data/tables/axis/DefaultForAlphaN-Load.h"
183  },
184  Table:{
185  #include "../data/tables/airflow/flat15PercentAirflow.h"
186  }
187 };
188 
189 
190 const volatile mainTable LambdaTableFlashV FUELTABLESD = {
191 #if CONFIG == DEFAULT_ID
192  RPMLength: MAINTABLE_RPM_LENGTH,
193  LoadLength: MAINTABLE_LOAD_LENGTH,
194 #elif CONFIG == DEUCES10_ID
195  RPMLength: 13,
196  LoadLength: 10,
197 #elif CONFIG == SNOTROCKET_ID
198  RPMLength: 12,
199  LoadLength: 8,
200 #else
201  RPMLength: 16,
202  LoadLength: 16,
203 #endif
204  RPM: {
205 #if CONFIG == HOTEL_ID
206 #include "../data/tables/axis/HotelHyundai-RPM.h"
207 #elif CONFIG == SEANKLT1_ID
208 #include "../data/tables/axis/SeansLT1-RPM.h"
209 #elif CONFIG == SCAVENGER_ID
210 #include "../data/tables/axis/ScavengersMiata-RPM.h"
211 #elif CONFIG == DEFAULT_ID
212 #include "../data/tables/axis/DefaultWith400Spacing-RPM.h"
213 #elif CONFIG == SLATER_ID
214 #include "../data/tables/axis/Slater-RPM.h"
215 #elif CONFIG == DEUCES10_ID
216 #include "../data/tables/axis/Deuces3100-RPM.h"
217 #elif CONFIG == SNOTROCKET_ID
218 #include "../data/tables/axis/SimsVolvo-RPM.h"
219 #else
220 #include "../data/tables/axis/FredsTruck-RPM.h"
221 #endif
222  },
223  Load: {
224 #if CONFIG == HOTEL_ID
225 #include "../data/tables/axis/HotelHyundai-Load.h"
226 #elif CONFIG == SCAVENGER_ID
227 #include "../data/tables/axis/ScavengersMiata-Load.h"
228 #elif CONFIG == DEFAULT_ID
229 #include "../data/tables/axis/DefaultWith10and20SplitSpacing-Load.h"
230 #elif CONFIG == SLATER_ID
231 #include "../data/tables/axis/Slater-Load.h"
232 #elif CONFIG == DEUCES10_ID
233 #include "../data/tables/axis/Deuces3100-Load.h"
234 #elif CONFIG == SNOTROCKET_ID
235 #include "../data/tables/axis/SimsVolvo-Load.h"
236 #else
237 #include "../data/tables/axis/FredsTruck-Load.h"
238 #endif
239  },
240  Table: {
241 #if CONFIG == HOTEL_ID
242 #include "../data/tables/lambda/HotelHyundaiLambda.h"
243 #elif CONFIG == SCAVENGER_ID
244 #include "../data/tables/lambda/ScavengerLambda24RPMx19Load.h"
245 #elif CONFIG == DEFAULT_ID
246 #include "../data/tables/lambda/DefaultLambda24RPMx19Load.h"
247 #elif CONFIG == SLATER_ID
248 #include "../data/tables/lambda/SlaterLambda.h"
249 #elif CONFIG == DEUCES10_ID
250 #include "../data/tables/lambda/DeucesS10Lambda.h"
251 #elif CONFIG == SNOTROCKET_ID
252 #include "../data/tables/lambda/SimsVolvoLambda.h"
253 #else
254 #include "../data/tables/lambda/GenericLambda.h" // Reasonable starting point
255 #endif
256  }
257 };