Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
Diff: main.cpp
- Revision:
- 101:cf1976e16f28
- Parent:
- 100:af43bc82d3eb
diff -r af43bc82d3eb -r cf1976e16f28 main.cpp --- a/main.cpp Thu Mar 09 08:08:10 2017 +0000 +++ b/main.cpp Tue Mar 28 08:48:42 2017 +0000 @@ -817,9 +817,10 @@ timer_FCTN_BATT_TEMP_SENSOR_MAIN.start(); FCTN_BATT_TEMP_SENSOR_MAIN(actual_data.Batt_temp_actual); timer_FCTN_BATT_TEMP_SENSOR_MAIN.stop(); - + pc.printf("Battery temperature %f %f\n\r" ,actual_data.Batt_temp_actual[0], actual_data.Batt_temp_actual[1]); EPS_BTRY_TMP_AVG = ( actual_data.Batt_temp_actual[0] + actual_data.Batt_temp_actual[1] )/2.0; + if(abs(actual_data.Batt_temp_actual[0] - actual_data.Batt_temp_actual[1]) > 10) { EPS_BTRY_TMP_STATUS = 0; //clear EPS_BTRY_TMP_STATUS @@ -937,7 +938,8 @@ while(1) { Thread::signal_wait(0x4); - wait_us(300); + wait_us(300); // restore it + //__disable_irq(); BAE_MNG_I2C_STATUS =1 ;