Team Fox / Mbed 2 deprecated BAE_CODE_MARCH_2017

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_5thJan_azad by Team Fox

Revision:
94:17172893d231
Parent:
90:2d0cdc87329a
Child:
95:d9ad0e6481be
--- a/EPS.cpp	Wed Jan 04 14:22:31 2017 +0000
+++ b/EPS.cpp	Thu Jan 05 12:49:47 2017 +0000
@@ -235,6 +235,7 @@
         
         actual_data.Batt_voltage_actual = Batt_voltage.read()*3.3; //1 corresponds to 3.3 scaling factor
         FCTN_EPS_POWERMODE(actual_data.Batt_gauge_actual[1]);
+        eps_pc.printf("Power Level: %d\n\r", actual_data.power_mode);
         EPS_BATTERY_GAUGE_STATUS = 1;               //set EPS_BATTERY_GAUGE_STATUS
         eps_pc.printf("init BTG success - %d\n\r", value_u);
     }
@@ -546,8 +547,8 @@
     //actual_data.BAE_temp_actual=(-90.7*3.3*actual_data.BAE_temp_actual)+190.1543;
     actual_data.BAE_temp_actual=(-90.7*3.3*BAE_temp_sensor.read())+190.1543;
     
-    actual_data.Batt_voltage_actual = (Batt_voltage.read()*3.3*5.63) * 10;
-
+    //actual_data.Batt_voltage_actual = (Batt_voltage.read()*3.3*5.63) * 10;
+    actual_data.Batt_voltage_actual = vcell();
     //quantizing data //changing the algo 
     for(Iteration=0; Iteration<16; Iteration++){