MembersPage/NanassyPeter/CoolantSensor

Hex-patch for CLT sensor, wich now with released 1.0.59 firmware default settings reads 10-12C more than real.


Ok thanks but i cant use this,the whole thing is chineese to me!

I need a file.

pnanassy

---

Orig C Orig FOrig internalOrig ADCrequired Crequired Frequired internal
846 86 (0x56) 183,184(0xB7,0xB8) -2 28 68
95 203 243 (0xF3)19(0x13) 92.5199239(0xEF)

So running:

after editing propertherm.pl :
add_adcread_internal( $measured, 183, 68 );
add_adcread_internal( $measured, 19, 239 );

running:
perl propertherm.pl < /svn/firmware/firmware/trunk/inc/thermfactor.inc  >ntc_propertherm.out 2>ntc_propertherm.err 

[ cltfactor] result:

# automatically generated by propertherm, type=clt
# modelparam = 2978.24557806323 Ohm  227.050578069197 aref
# 2252 Ohm in modelparam means that the actually used thermistor exactly matches the reference CURVE, 2297 means that the real thin
g is +2% higher resistance (at given temp) than the reference CURVE
:10030000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD
:10031000FBF7F3F0ECE9E6E3E1DEDCD9D7D5D3D0A7
:10032000CECCCBC9C7C6C4C2C0BFBDBCBAB9B8B6B3
:10033000B5B4B2B1B0AFADACABAAA9A8A6A5A4A301
:10034000A3A2A09F9E9D9C9B9A99999897969594FD
:1003500093929291908F8E8D8D8C8B8A89888887CD
:100360008685858483828281807F7F7E7D7C7C7B85
:100370007A79797877767675747373727170706F35
:100380006E6E6D6C6C6B6A696968676665656463DF
:1003900062626160605F5E5D5D5C5B5B5A5958578D
:1003A0005756555453525251504F4E4D4D4C4B4A47
:1003B000494948474645444342413F3E3D3C3B3A1C
:1003C00039383736353332312F2E2C2B2928262534
:1003D00023211F1D1B191614120F0B070400000008
:1003E000000000000000000000000000000000000D
:1003F00000000000000000000000000000000000FD

ntc_propertherm.out on approximation error:

2978 Ohm   Aref=227

error:
19 => 93.1415341822047  (should be 92.7777777777778      so error=0.363756404426894) 
183 => -2.99332554482102        (should be -2.22222222222222     so error=-0.771103322598801) 
errsqr=0.726919055884493