Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller
Dependencies: SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed
Fork of CANary by
Diff: utility.cpp
- Revision:
- 175:0357b4159b40
- Parent:
- 174:cd27e80f197d
diff -r cd27e80f197d -r 0357b4159b40 utility.cpp --- a/utility.cpp Sun Jan 05 05:02:41 2014 +0000 +++ b/utility.cpp Fri Feb 07 01:59:53 2014 +0000 @@ -283,8 +283,8 @@ j=battData[(BatDataBaseG4*7)+12]*0x100+battData[(BatDataBaseG4*7)+13]; if(j<k)k=j; //interpolate from lookup table - unsigned short temp_adc[8] = {1000,589,487,401,365,340,309,000}; - float temp_C[8] = { -27, 13, 23, 32, 36, 39, 43, 76}; + unsigned short temp_adc[10] = {1000,720,690,589,487,401,365,340,309,000}; + float temp_C[10] = { -27, 0, 3, 13, 23, 32, 36, 39, 43, 76}; char ii=0; while(k<=temp_adc[++ii]) { } // Find section in table maxTemp=(float)(k-temp_adc[ii]);