Move src dir to nested main dir in preparation for sister test dir and cross compiled...
[freeems-vanilla.git] / src / main / initialisers / CHTTransferTable.c
blobb09549e2a0f8c840e30f612ad21c646b0e849099
1 /* FreeEMS - the open source engine management system
3 * Copyright 2008-2012 Fred Cooke
5 * This file is part of the FreeEMS project.
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.
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.
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/
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!
23 * Thank you for choosing FreeEMS to run your engine!
27 /** @file
29 * @ingroup dataInitialisers
31 * @brief Coolant/Head Temperature Transfer Table
33 * This file exists solely to contain the Coolant/Head Temperature thermistor
34 * transfer function lookup table.
38 #include "../inc/freeEMS.h"
41 /** @brief Coolant/Head Temperature Transfer Table
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.
46 * @author FreeTherm
48 const volatile unsigned short CHTTransferTable[1024] LOOKUPD = {
49 #if CONFIG == TRUCK_ID
50 #include "../data/thermistors/Bosch.h"
51 #elif CONFIG == PRESTO_ID
52 #include "../data/thermistors/Bosch.h"
53 #elif CONFIG == SEANKLT1_ID
54 #include "../data/thermistors/Bosch.h"
55 #elif SEANKR1 // No ID assigned yet!
56 #include "../data/thermistors/Bosch.h"
57 #elif CONFIG == SNOTROCKET_ID
58 #include "../data/thermistors/GM-2k4Bias.h"
59 #elif CONFIG == SLATER_ID
60 #include "../data/thermistors/BoschM12H-2k6Bias.h"
61 #elif CONFIG == PETERJSERIES_ID
62 #include "../data/thermistors/HondaJSeries-2k4Bias.h"
63 #elif CONFIG == DEUCECOUPE_ID
64 #include "../data/thermistors/GM-2k49Bias.h"
65 #elif CONFIG == PETERTRUCK_ID
66 #include "../data/thermistors/GM-2k4Bias.h"
67 #else // Default to correctly biased Jap sensor.
68 #include "../data/thermistors/Denso-2k7Bias.h"
69 #endif