aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hansen2011-01-21 23:38:39 +0100
committerNicolas Schodet2011-01-21 23:38:39 +0100
commitea4e008921f457d8111ed237f25b710817c6b34c (patch)
tree9af34c90fc0a92394c381815f3a8211cf65ced60
parentacb06c77dca2ec9ddd476225ce509c2cb5b05dfb (diff)
remove unused values in temperature conversion table
Imported from NXT Enhanced Firmware.
-rw-r--r--AT91SAM7S256/Source/c_input.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/AT91SAM7S256/Source/c_input.c b/AT91SAM7S256/Source/c_input.c
index e118291..667a167 100644
--- a/AT91SAM7S256/Source/c_input.c
+++ b/AT91SAM7S256/Source/c_input.c
@@ -69,12 +69,7 @@ enum
const SWORD TempConvTable[] =
{
- 1500, 1460, 1430, 1400, 1380, 1360, 1330, 1310, 1290, 1270, 1250, 1230, 1220, 1200, 1190, 1170,
- 1160, 1150, 1140, 1130, 1110, 1100, 1090, 1080, 1070, 1060, 1050, 1040, 1030, 1020, 1010, 1000,
- 994, 988, 982, 974, 968, 960, 954, 946, 940, 932, 926, 918, 912, 906, 900, 894,
- 890, 884, 878, 874, 868, 864, 858, 854, 848, 844, 838, 832, 828, 822, 816, 812,
- 808, 802, 798, 794, 790, 786, 782, 780, 776, 772, 768, 764, 762, 758, 754, 750,
- 748, 744, 740, 736, 732, 730, 726, 722, 718, 716, 712, 708, 704, 700, 696, 694,
+ 700, 696, 694,
690, 688, 684, 682, 678, 674, 672, 668, 666, 662, 660, 656, 654, 650, 648, 644,
642, 640, 638, 634, 632, 630, 628, 624, 622, 620, 616, 614, 612, 610, 608, 604,
602, 600, 598, 596, 592, 590, 588, 586, 584, 582, 580, 578, 576, 574, 572, 570,
@@ -114,13 +109,7 @@ const SWORD TempConvTable[] =
-98, -98, -100, -102, -104, -106, -106, -108, -110, -112, -114, -114, -116, -118, -120, -120,
-122, -124, -126, -128, -130, -130, -132, -134, -136, -138, -140, -142, -144, -146, -146, -148,
-150, -152, -154, -156, -158, -160, -162, -164, -166, -166, -168, -170, -172, -174, -176, -178,
- -180, -182, -184, -186, -188, -190, -192, -194, -196, -196, -198, -200, -202, -204, -206, -208,
- -210, -212, -214, -216, -218, -220, -224, -226, -228, -230, -232, -234, -236, -238, -242, -246,
- -248, -250, -254, -256, -260, -262, -264, -268, -270, -274, -276, -278, -282, -284, -286, -290,
- -292, -296, -298, -300, -306, -308, -312, -316, -320, -324, -326, -330, -334, -338, -342, -344,
- -348, -354, -358, -362, -366, -370, -376, -380, -384, -388, -394, -398, -404, -410, -416, -420,
- -428, -432, -440, -446, -450, -460, -468, -476, -484, -492, -500, -510, -524, -534, -546, -560,
- -572, -588, -600, -630, -656, -684, -720, -770
+ -180, -182, -184, -186, -188, -190, -192, -194, -196, -196, -198, -200
};
static IOMAPINPUT IOMapInput;
@@ -324,7 +313,7 @@ void cInputCalcSensorValues(UBYTE No)
InputVal = 290;
else if (InputVal > 928)
InputVal = 928;
- InputVal = TempConvTable[(InputVal) - 197];
+ InputVal = TempConvTable[(InputVal) - 290];
InputVal = InputVal + 200;
InputVal = (UWORD)(((SLONG)InputVal * (SLONG)1023)/(SLONG)900);
}