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
Diff: EPS.cpp
- Revision:
- 86:051ec436e75f
- Parent:
- 79:bc093fd525d7
- Child:
- 89:2d0cdc87329a
--- a/EPS.cpp Sat Dec 17 09:23:49 2016 +0000
+++ b/EPS.cpp Sat Dec 17 13:32:52 2016 +0000
@@ -219,7 +219,7 @@
unsigned short value_u= (short int )value;
//value_u &=0x0001;
- if(value_u & 0x0001 == 0x0001 && eps_btg_read_flag == 0) // battery gauge not initialised
+ if(value_u & 0x0001 == 0x0001 )//&& eps_btg_read_flag == 0) // battery gauge not initialised
{
actual_data.power_mode = 0; // indicates btg not working / NA
@@ -979,8 +979,8 @@
vResetThresholdSet();//set threshold voltage for reset
vResetAlertEnabled(true);//enable alert on reset for V < Vreset
int ack = write(REG_STATUS, read(REG_STATUS) & 0xFEFF); //Clearing Reset Indicator bit
- if( ack == 0 ) eps_pc.printf("BTG init success\n\r");
- else eps_pc.printf("BTG init fail ack = %d\n\r", ack);
+ if( ack == 0 ) eps_pc.printf("\n\rBTG init success\n\r");
+ else eps_pc.printf("\n\rBTG init fail ack = %d\n\r", ack);
write(REG_STATUS, read(REG_STATUS) & 0xFEFF); //Clearing Reset Indicator bit
}
@@ -1003,9 +1003,9 @@
Battery_parameters[2]=crate();
- //// eps_pc.printf("\nVcell=%f",vcell()); //remove this for final code
- //// eps_pc.printf("\nSOC=%f",soc()); //remove this for final code
- //// eps_pc.printf("\nC_rate=%f",crate()); //remove this for final code
+ eps_pc.printf("\nVcell=%f",vcell()); //remove this for final code
+ eps_pc.printf("\nSOC=%f",soc()); //remove this for final code
+ eps_pc.printf("\nC_rate=%f",crate()); //remove this for final code
if (alerting()== true) //alert is on
