Team Fox / Mbed 2 deprecated BAE_CODE_MARCH_2017

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_5thJan_azad by Team Fox

Revision:
86:441d072d489f
Parent:
79:bc093fd525d7
diff -r 55a87500895a -r 441d072d489f EPS.cpp
--- a/EPS.cpp	Sat Dec 17 09:23:49 2016 +0000
+++ b/EPS.cpp	Wed Dec 21 08:04:23 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++){
         
@@ -601,9 +601,9 @@
     /*quant_data.Batt_voltage_quant= float_to_uint8(0,25.0,actual_data.Batt_voltage_actual);*/
     /* 
     for(Iteration=0; Iteration<16; Iteration++)
-    eps_pc.printf("Current[%d]  %d\r\n",Iteration, quant_data.current_quant[Iteration]);
+    //eps_pc.printf("Current[%d]  %d\r\n",Iteration, quant_data.current_quant[Iteration]);
     for(Iteration=0; Iteration<16; Iteration++)
-    eps_pc.printf("vvol[%d]  %d\r\n",Iteration,quant_data.voltage_quant[Iteration]);*/
+    //eps_pc.printf("vvol[%d]  %d\r\n",Iteration,quant_data.voltage_quant[Iteration]);*/
     
     //?? WHAT DO here
     arch_data.Batt_1_temp=quant_data.Batt_temp_quant[0];
@@ -918,6 +918,7 @@
     }   
     firstCount=false;
     
+    /*
     //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]);
@@ -963,7 +964,7 @@
         
         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);
-        
+        */
     
 }