FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
CHTTransferTable.c
Go to the documentation of this file.
1 /* FreeEMS - the open source engine management system
2  *
3  * Copyright 2008-2012 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 Coolant/Head Temperature Transfer Table
32  *
33  * This file exists solely to contain the Coolant/Head Temperature thermistor
34  * transfer function lookup table.
35  */
36 
37 
38 #include "../inc/freeEMS.h"
39 
40 
41 /** @brief Coolant/Head Temperature Transfer Table
42  *
43  * Using this table it is possible to accurately and quickly convert
44  * a raw ADC reading to a scaled temperature value in degrees Kelvin.
45  *
46  * @author FreeTherm
47  */
48 const volatile unsigned short CHTTransferTable[1024] LOOKUPD = {
49 #if CONFIG == TRUCK_ID
50 #include "../data/thermistors/Bosch.h"
51 #elif CONFIG == HOTEL_ID
52 #include "../data/thermistors/HotelStarion-2k49Bias.h"
53 #elif CONFIG == PRESTO_ID
54 #include "../data/thermistors/Bosch.h"
55 #elif CONFIG == SEANKLT1_ID
56 #include "../data/thermistors/Bosch.h"
57 #elif SEANKR1 // No ID assigned yet!
58 #include "../data/thermistors/Bosch.h"
59 #elif CONFIG == SNOTROCKET_ID
60 #include "../data/thermistors/GM-2k4Bias.h"
61 #elif CONFIG == SLATER_ID
62 #include "../data/thermistors/BoschM12H-2k6Bias.h"
63 #elif CONFIG == PETERJSERIES_ID
64 #include "../data/thermistors/HondaJSeries-2k4Bias.h"
65 #elif CONFIG == DEUCECOUPE_ID
66 #include "../data/thermistors/GM-2k49Bias.h"
67 #elif CONFIG == DEUCES10_ID
68 #include "../data/thermistors/GM-2k49Bias.h"
69 #elif CONFIG == PETERTRUCK_ID
70 #include "../data/thermistors/GM-2k4Bias.h"
71 #elif CONFIG == SCAVENGER_ID
72 #include "../data/thermistors/Denso-2k49Bias.h"
73 #else // Default to correctly biased Jap sensor.
74 #include "../data/thermistors/Denso-2k7Bias.h"
75 #endif
76 };