From b13f85e845421c396a2b07ecbcfd7928708e987d Mon Sep 17 00:00:00 2001 From: Fred Cooke Date: Sun, 25 May 2014 17:58:56 +1200 Subject: [PATCH] Add new coolant sensor thermistor lookup table for old Starion manifold stock sensor as used in the mighty HOTEL. --- src/main/data/thermistors/HotelStarion-2k49Bias.h | 113 ++++++++++++++++++++++ src/main/initialisers/CHTTransferTable.c | 2 + 2 files changed, 115 insertions(+) create mode 100644 src/main/data/thermistors/HotelStarion-2k49Bias.h diff --git a/src/main/data/thermistors/HotelStarion-2k49Bias.h b/src/main/data/thermistors/HotelStarion-2k49Bias.h new file mode 100644 index 0000000..f5ad78a --- /dev/null +++ b/src/main/data/thermistors/HotelStarion-2k49Bias.h @@ -0,0 +1,113 @@ +/* FreeEMS - the open source engine management system + * + * Copyright 2008 - 2014 Fred Cooke + * + * This file is part of the FreeEMS project. + * + * FreeEMS software is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FreeEMS software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with any FreeEMS software. If not, see http://www.gnu.org/licenses/ + * + * We ask that if you make any changes to this file you email them upstream to + * us at admin(at)diyefi(dot)org or, even better, fork the code on github.com! + * + * Thank you for choosing FreeEMS to run your engine! + */ + + +/** @file + * + * @ingroup dataInitialisers + * + * Generated by FreeTherm 0.7-SNAPSHOT using the following parameters: + * + * Bias Resistor: + * Value: 2490 + * + * Sensor Sample Points: + * Temp Low : 1 + * Temp Mid : 21 + * Temp High : 100 + * Res Low : 10000 + * Res Mid : 2730 + * Res High : 270 + * + * Temp Units: + * Input Temp Scale: Celcius + * Output Temp Scale: Kelvin + */ + + +65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 64440, 62190, 60315, 58723, 57347, 56142, 55075, 54121, +53262, 52482, 51769, 51115, 50511, 49951, 49430, 48944, 48489, 48061, 47657, 47277, 46916, 46574, 46249, 45940, +45645, 45363, 45094, 44835, 44588, 44350, 44121, 43901, 43688, 43483, 43286, 43095, 42910, 42731, 42558, 42390, +42227, 42069, 41915, 41766, 41620, 41479, 41341, 41207, 41077, 40949, 40825, 40703, 40585, 40469, 40356, 40245, +40137, 40031, 39928, 39826, 39727, 39629, 39534, 39440, 39349, 39259, 39170, 39084, 38998, 38915, 38833, 38752, +38673, 38595, 38518, 38443, 38369, 38296, 38224, 38153, 38084, 38015, 37948, 37882, 37816, 37752, 37688, 37625, +37564, 37503, 37443, 37384, 37325, 37267, 37211, 37154, 37099, 37044, 36990, 36937, 36884, 36832, 36781, 36730, +36680, 36631, 36582, 36533, 36485, 36438, 36391, 36345, 36299, 36254, 36209, 36165, 36121, 36078, 36035, 35993, +35951, 35909, 35868, 35827, 35787, 35747, 35708, 35668, 35630, 35591, 35553, 35516, 35478, 35441, 35405, 35368, +35333, 35297, 35262, 35227, 35192, 35157, 35123, 35090, 35056, 35023, 34990, 34957, 34925, 34893, 34861, 34829, +34798, 34767, 34736, 34705, 34675, 34645, 34615, 34585, 34556, 34526, 34497, 34469, 34440, 34412, 34384, 34356, +34328, 34300, 34273, 34246, 34219, 34192, 34165, 34139, 34113, 34087, 34061, 34035, 34010, 33984, 33959, 33934, +33909, 33885, 33860, 33836, 33811, 33787, 33763, 33740, 33716, 33693, 33669, 33646, 33623, 33600, 33577, 33555, +33532, 33510, 33488, 33466, 33444, 33422, 33400, 33378, 33357, 33336, 33314, 33293, 33272, 33251, 33231, 33210, +33190, 33169, 33149, 33129, 33109, 33089, 33069, 33049, 33029, 33010, 32990, 32971, 32952, 32932, 32913, 32894, +32876, 32857, 32838, 32820, 32801, 32783, 32764, 32746, 32728, 32710, 32692, 32674, 32656, 32639, 32621, 32603, +32586, 32569, 32551, 32534, 32517, 32500, 32483, 32466, 32449, 32432, 32416, 32399, 32382, 32366, 32350, 32333, +32317, 32301, 32285, 32269, 32253, 32237, 32221, 32205, 32189, 32174, 32158, 32143, 32127, 32112, 32097, 32081, +32066, 32051, 32036, 32021, 32006, 31991, 31976, 31961, 31947, 31932, 31917, 31903, 31888, 31874, 31859, 31845, +31831, 31817, 31802, 31788, 31774, 31760, 31746, 31732, 31718, 31705, 31691, 31677, 31663, 31650, 31636, 31623, +31609, 31596, 31582, 31569, 31556, 31542, 31529, 31516, 31503, 31490, 31477, 31464, 31451, 31438, 31425, 31412, +31400, 31387, 31374, 31362, 31349, 31336, 31324, 31311, 31299, 31287, 31274, 31262, 31250, 31237, 31225, 31213, +31201, 31189, 31177, 31165, 31153, 31141, 31129, 31117, 31105, 31093, 31081, 31070, 31058, 31046, 31035, 31023, +31012, 31000, 30989, 30977, 30966, 30954, 30943, 30932, 30920, 30909, 30898, 30886, 30875, 30864, 30853, 30842, +30831, 30820, 30809, 30798, 30787, 30776, 30765, 30754, 30743, 30733, 30722, 30711, 30700, 30690, 30679, 30668, +30658, 30647, 30637, 30626, 30616, 30605, 30595, 30584, 30574, 30564, 30553, 30543, 30533, 30522, 30512, 30502, +30492, 30482, 30472, 30461, 30451, 30441, 30431, 30421, 30411, 30401, 30391, 30381, 30371, 30362, 30352, 30342, +30332, 30322, 30312, 30303, 30293, 30283, 30274, 30264, 30254, 30245, 30235, 30226, 30216, 30206, 30197, 30187, +30178, 30168, 30159, 30150, 30140, 30131, 30121, 30112, 30103, 30094, 30084, 30075, 30066, 30057, 30047, 30038, +30029, 30020, 30011, 30002, 29993, 29983, 29974, 29965, 29956, 29947, 29938, 29929, 29920, 29911, 29903, 29894, +29885, 29876, 29867, 29858, 29849, 29841, 29832, 29823, 29814, 29806, 29797, 29788, 29779, 29771, 29762, 29753, +29745, 29736, 29728, 29719, 29710, 29702, 29693, 29685, 29676, 29668, 29659, 29651, 29642, 29634, 29626, 29617, +29609, 29600, 29592, 29584, 29575, 29567, 29559, 29550, 29542, 29534, 29526, 29517, 29509, 29501, 29493, 29484, +29476, 29468, 29460, 29452, 29444, 29436, 29427, 29419, 29411, 29403, 29395, 29387, 29379, 29371, 29363, 29355, +29347, 29339, 29331, 29323, 29315, 29307, 29299, 29291, 29284, 29276, 29268, 29260, 29252, 29244, 29236, 29229, +29221, 29213, 29205, 29197, 29190, 29182, 29174, 29166, 29159, 29151, 29143, 29136, 29128, 29120, 29113, 29105, +29097, 29090, 29082, 29074, 29067, 29059, 29052, 29044, 29036, 29029, 29021, 29014, 29006, 28999, 28991, 28984, +28976, 28969, 28961, 28954, 28946, 28939, 28931, 28924, 28917, 28909, 28902, 28894, 28887, 28880, 28872, 28865, +28857, 28850, 28843, 28835, 28828, 28821, 28813, 28806, 28799, 28792, 28784, 28777, 28770, 28762, 28755, 28748, +28741, 28734, 28726, 28719, 28712, 28705, 28697, 28690, 28683, 28676, 28669, 28662, 28654, 28647, 28640, 28633, +28626, 28619, 28612, 28604, 28597, 28590, 28583, 28576, 28569, 28562, 28555, 28548, 28541, 28534, 28527, 28520, +28513, 28506, 28499, 28492, 28485, 28478, 28471, 28464, 28457, 28450, 28443, 28436, 28429, 28422, 28415, 28408, +28401, 28394, 28387, 28380, 28373, 28366, 28359, 28352, 28346, 28339, 28332, 28325, 28318, 28311, 28304, 28297, +28291, 28284, 28277, 28270, 28263, 28256, 28249, 28243, 28236, 28229, 28222, 28215, 28209, 28202, 28195, 28188, +28181, 28175, 28168, 28161, 28154, 28147, 28141, 28134, 28127, 28120, 28114, 28107, 28100, 28093, 28087, 28080, +28073, 28067, 28060, 28053, 28046, 28040, 28033, 28026, 28020, 28013, 28006, 27999, 27993, 27986, 27979, 27973, +27966, 27959, 27953, 27946, 27939, 27933, 27926, 27919, 27913, 27906, 27899, 27893, 27886, 27879, 27873, 27866, +27860, 27853, 27846, 27840, 27833, 27826, 27820, 27813, 27807, 27800, 27793, 27787, 27780, 27774, 27767, 27760, +27754, 27747, 27741, 27734, 27728, 27721, 27714, 27708, 27701, 27695, 27688, 27682, 27675, 27668, 27662, 27655, +27649, 27642, 27636, 27629, 27623, 27616, 27609, 27603, 27596, 27590, 27583, 27577, 27570, 27564, 27557, 27551, +27544, 27538, 27531, 27525, 27518, 27512, 27505, 27499, 27492, 27486, 27479, 27473, 27466, 27460, 27453, 27447, +27440, 27434, 27427, 27421, 27414, 27408, 27401, 27395, 27388, 27382, 27375, 27369, 27362, 27356, 27349, 27343, +27336, 27330, 27323, 27317, 27311, 27304, 27298, 27291, 27285, 27278, 27272, 27265, 27259, 27253, 27246, 27240, +27233, 27227, 27221, 27214, 27208, 27201, 27195, 27188, 27182, 27176, 27169, 27163, 27157, 27150, 27144, 27137, +27131, 27125, 27118, 27112, 27106, 27099, 27093, 27087, 27080, 27074, 27068, 27061, 27055, 27049, 27042, 27036, +27030, 27024, 27017, 27011, 27005, 26999, 26992, 26986, 26980, 26974, 26968, 26961, 26955, 26949, 26943, 26937, +26931, 26924, 26918, 26912, 26906, 26900, 26894, 26888, 26882, 26876, 26870, 26864, 26858, 26852, 26846, 26840, +26834, 26828, 26822, 26816, 26811, 26805, 26799, 26793, 26788, 26782, 26776, 26771, 26765, 26759, 26754, 26748, +26743, 26737, 26732, 26727, 26721, 26716, 26711, 26705, 26700, 26695, 26690, 26685, 26680, 26675, 26670, 26665, +26661, 26656, 26651, 26647, 26642, 26638, 26634, 26630, 26625, 26621, 26618, 26614, 26610, 26606, 26603, 26600, +26596, 26593, 26590, 26587, 26585, 26582, 26580, 26578, 26576, 26574, 26573, 26571, 26570, 26570, 26569, 26569, +26569, 26569, 26570, 26571, 26573, 26575, 26577, 26580, 26584, 26587, 26592, 26597, 26603, 26610, 26617, 26625, +26635, 26645, 26656, 26669, 26683, 26698, 26715, 26734, 26755, 26778, 26804, 26833, 26865, 26900, 26940, 26984, +27034, 27091, 27156, 27230, 27315, 27414, 27531, 27670, 27838, 28046, 28310, 28657, 29139, 29860, 31102, 34020 diff --git a/src/main/initialisers/CHTTransferTable.c b/src/main/initialisers/CHTTransferTable.c index b862ac0..500928f 100644 --- a/src/main/initialisers/CHTTransferTable.c +++ b/src/main/initialisers/CHTTransferTable.c @@ -48,6 +48,8 @@ const volatile unsigned short CHTTransferTable[1024] LOOKUPD = { #if CONFIG == TRUCK_ID #include "../data/thermistors/Bosch.h" +#elif CONFIG == HOTEL_ID +#include "../data/thermistors/HotelStarion-2k49Bias.h" #elif CONFIG == PRESTO_ID #include "../data/thermistors/Bosch.h" #elif CONFIG == SEANKLT1_ID -- 2.11.4.GIT