To fix the hang problem
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: CDMS_HK.h
- Revision:
- 310:bd591ef82b76
- Parent:
- 309:6ed5535ac465
--- a/CDMS_HK.h Tue Nov 01 07:18:59 2016 +0000 +++ b/CDMS_HK.h Tue Nov 22 08:39:38 2016 +0000 @@ -319,10 +319,10 @@ else if(Iteration<14){ resistance=24300*actual_data.temp_actual[Iteration]*3.3/(3.3-actual_data.temp_actual[Iteration]*3.3); - if(actual_data.temp_actual[Iteration]*3.3<1.47) //Document says 1.378 .Pls Check - actual_data.temp_actual[Iteration]=3694/log(24.032242*resistance/10); + if(actual_data.temp_actual[Iteration]*3.3>1.47) //Document says 1.378 .Pls Check + actual_data.temp_actual[Iteration]=3694/log(24.032242*resistance); else - actual_data.temp_actual[Iteration]=3365.4/log(7.60573*resistance/10); + actual_data.temp_actual[Iteration]=3365.4/log(7.60573*resistance); } else actual_data.temp_actual[Iteration]=(-90.7*3.3*actual_data.temp_actual[Iteration])+190.1543;