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: EPS.cpp
- 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++){
