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 RAJANGAM_REVIEW_BAE_CODE by
Revision 89:2d0cdc87329a, committed 2016-12-30
- Comitter:
- Bragadeesh153
- Date:
- Fri Dec 30 10:29:44 2016 +0000
- Parent:
- 88:d50f09fab17f
- Commit message:
- printf removed
Changed in this revision
EPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EPS.cpp Sat Dec 24 10:06:21 2016 +0000 +++ b/EPS.cpp Fri Dec 30 10:29:44 2016 +0000 @@ -469,11 +469,11 @@ { actual_data.voltage_actual[Iteration]=VoltageInput.read(); //wait_ms(100); //remove - eps_pc.printf("\n\rthe raw voltage values VOL[%d] = %f",Iteration,actual_data.voltage_actual[Iteration]); + /// eps_pc.printf("\n\rthe raw voltage values VOL[%d] = %f",Iteration,actual_data.voltage_actual[Iteration]); wait_ms(2); actual_data.current_actual[Iteration]=CurrentInput.read(); wait_ms(2); - eps_pc.printf("\n\rthe raw current values CURR[%d] = %f",Iteration,actual_data.current_actual[Iteration]); + //eps_pc.printf("\n\rthe raw current values CURR[%d] = %f",Iteration,actual_data.current_actual[Iteration]); SelectLinea0=!(SelectLinea0); if(Iteration%2==1) @@ -499,7 +499,7 @@ else actual_data.voltage_actual[Iteration] = (actual_data.voltage_actual[Iteration]*3.3*62)/11.0; - eps_pc.printf("VVVoltage[%d] %f\r\n",Iteration,actual_data.voltage_actual[Iteration]); + // eps_pc.printf("VVVoltage[%d] %f\r\n",Iteration,actual_data.voltage_actual[Iteration]); } for(Iteration=0;Iteration<16;Iteration++){ @@ -540,7 +540,7 @@ actual_data.current_actual[Iteration] = actual_data.current_actual[Iteration] - 273.15; /*converting from C to kelvin*/ } - printf("Current[%d] %f\r\n",Iteration,actual_data.current_actual[Iteration]); + // printf("Current[%d] %f\r\n",Iteration,actual_data.current_actual[Iteration]); } //actual_data.BAE_temp_actual=(-90.7*3.3*actual_data.BAE_temp_actual)+190.1543; @@ -556,7 +556,7 @@ else quant_data.voltage_quant[Iteration] = 10*actual_data.voltage_actual[Iteration]; //quant_data.voltage_quant[Iteration] = float_to_uint8(0.0,25,actual_data.voltage_actual[Iteration]);//quantiz(vstart,vstep,actual_data.voltage_actual[Iteration]); - eps_pc.printf("\n\r quan vol data[%d],\t %d",Iteration,quant_data.voltage_quant[Iteration]); + //eps_pc.printf("\n\r quan vol data[%d],\t %d",Iteration,quant_data.voltage_quant[Iteration]); } for(Iteration=0;Iteration<16;Iteration++){ @@ -570,7 +570,7 @@ else if(Iteration>9)/*changed from 25 to 300 what value do we expectt?*/ quant_data.current_quant[Iteration] = float_to_uint8(-50,100,actual_data.current_actual[Iteration]); - eps_pc.printf("\n\r quan curr data[%d],\t %d",Iteration,quant_data.current_quant[Iteration]); + // eps_pc.printf("\n\r quan curr data[%d],\t %d",Iteration,quant_data.current_quant[Iteration]); } for(Iteration=0;Iteration<2;Iteration++){ @@ -920,49 +920,49 @@ //printing the min_max data shouldn't give the tc to get new min max data shouldn't call the case 0x41 now to reset the min_max data for (int i = 0; i < 16; ++i) - eps_pc.printf("\n\rthe min volatages are %d = %d",i,bae_HK_minmax.voltage_min[i]); + // eps_pc.printf("\n\rthe min volatages are %d = %d",i,bae_HK_minmax.voltage_min[i]); for (int i = 0; i < 16; ++i) - eps_pc.printf("\n\rthe min current are %d = %d",i,bae_HK_minmax.current_min[i]); + //eps_pc.printf("\n\rthe min current are %d = %d",i,bae_HK_minmax.current_min[i]); for (int i = 0; i < 2; ++i) - eps_pc.printf("\n\rthe min bae_temp are %d = %d",i,bae_HK_minmax.Batt_temp_min[i]); + // eps_pc.printf("\n\rthe min bae_temp are %d = %d",i,bae_HK_minmax.Batt_temp_min[i]); - eps_pc.printf("\n\rthe min batt_SOC_min are %d",bae_HK_minmax.Batt_SOC_min); - eps_pc.printf("\n\rthe min BCN_TEMP_min are %d",bae_HK_minmax.BCN_TEMP_min); + //eps_pc.printf("\n\rthe min batt_SOC_min are %d",bae_HK_minmax.Batt_SOC_min); + // eps_pc.printf("\n\rthe min BCN_TEMP_min are %d",bae_HK_minmax.BCN_TEMP_min); for (int i = 0; i < 3; ++i) { - eps_pc.printf("\n\rthe min bit_data_acs_mg_min are %d = %d",i,bae_HK_minmax.bit_data_acs_mg_min[i]); + // eps_pc.printf("\n\rthe min bit_data_acs_mg_min are %d = %d",i,bae_HK_minmax.bit_data_acs_mg_min[i]); } for (int i = 0; i < 3; ++i) { - eps_pc.printf("\n\rthe min bit_data_acs_mm_min are %d = %d",i,bae_HK_minmax.bit_data_acs_mm_min[i]); + // eps_pc.printf("\n\rthe min bit_data_acs_mm_min are %d = %d",i,bae_HK_minmax.bit_data_acs_mm_min[i]); } - eps_pc.printf("\n\rthe min BAE_temp_min are %d",bae_HK_minmax.BAE_temp_min); - eps_pc.printf("\n\rthe min Batt_voltage_min %d",bae_HK_minmax.Batt_voltage_min); + //eps_pc.printf("\n\rthe min BAE_temp_min are %d",bae_HK_minmax.BAE_temp_min); + //eps_pc.printf("\n\rthe min Batt_voltage_min %d",bae_HK_minmax.Batt_voltage_min); //max data now for (int i = 0; i < 16; ++i) - eps_pc.printf("\n\rthe max volatages are %d = %d",i,bae_HK_minmax.voltage_max[i]); + // eps_pc.printf("\n\rthe max volatages are %d = %d",i,bae_HK_minmax.voltage_max[i]); for (int i = 0; i < 16; ++i) - eps_pc.printf("\n\rthe max current are %d = %d",i,bae_HK_minmax.current_max[i]); + //eps_pc.printf("\n\rthe max current are %d = %d",i,bae_HK_minmax.current_max[i]); for (int i = 0; i < 2; ++i) - eps_pc.printf("\n\rthe max bae_temp are %d = %d",i,bae_HK_minmax.Batt_temp_max[i]); + //eps_pc.printf("\n\rthe max bae_temp are %d = %d",i,bae_HK_minmax.Batt_temp_max[i]); - eps_pc.printf("\n\rthe max batt_SOC_max are %d",bae_HK_minmax.Batt_SOC_max); - eps_pc.printf("\n\rthe max BCN_TEMP_max are %d",bae_HK_minmax.BCN_TEMP_max); + //eps_pc.printf("\n\rthe max batt_SOC_max are %d",bae_HK_minmax.Batt_SOC_max); + // eps_pc.printf("\n\rthe max BCN_TEMP_max are %d",bae_HK_minmax.BCN_TEMP_max); for (int i = 0; i < 3; ++i) { - eps_pc.printf("\n\rthe max bit_data_acs_mg_max are %d = %d",i,bae_HK_minmax.bit_data_acs_mg_max[i]); + // eps_pc.printf("\n\rthe max bit_data_acs_mg_max are %d = %d",i,bae_HK_minmax.bit_data_acs_mg_max[i]); } for (int i = 0; i < 3; ++i) { - eps_pc.printf("\n\rthe max bit_data_acs_mm_max are %d = %d",i,bae_HK_minmax.bit_data_acs_mm_max[i]); + //eps_pc.printf("\n\rthe max bit_data_acs_mm_max are %d = %d",i,bae_HK_minmax.bit_data_acs_mm_max[i]); } - eps_pc.printf("\n\rthe max BAE_temp_max are %d ",bae_HK_minmax.BAE_temp_max); - eps_pc.printf("\n\rthe max Batt_voltage_max %d ",bae_HK_minmax.Batt_voltage_max); + //eps_pc.printf("\n\rthe max BAE_temp_max are %d ",bae_HK_minmax.BAE_temp_max); + // eps_pc.printf("\n\rthe max Batt_voltage_max %d ",bae_HK_minmax.Batt_voltage_max); }