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.h
- Revision:
- 30:22b338b027de
- Parent:
- 28:5f0f2a3f3e8d
- Child:
- 31:046685b48b71
--- a/EPS.h Thu Jun 23 12:14:28 2016 +0000 +++ b/EPS.h Fri Jul 01 14:59:12 2016 +0000 @@ -1,5 +1,28 @@ #include <mbed.h> +/* +Tasks left: + +2. EPS battery heater automation with customised timer + +*/ +/* +//EPS STATES// + +if (EPS_STATUS==0) + Set EPS_ERR_BATTERY_TEMP +else if (EPS_STATUS==1) + Set EPS_BATTERY_HEATER_DISABLED +else if (EPS_STATUS==2) + Set EPS_ERR_HEATER_SWITCH_OFF +else if (EPS_STATUS==3) + Set EPS_ERR_HEATER_SWITCH_ON +else if (EPS_STATUS==4) + Set EPS_BATTERY_HEATER_OFF +else if (EPS_STATUS==5) + Set EPS_BATTERY_HEATER_ON +*/ + #define tstart -40 #define tstep 8 #define tstep_thermistor 8 //verify everything!! @@ -59,12 +82,12 @@ void minMaxHkData(); void FCTN_BATTERYGAUGE_INIT(); -void FCTN_BATTERYGAUGE_MAIN(float*Battery_parameters); +int FCTN_BATTERYGAUGE_MAIN(float*Battery_parameters, float); // unsigned short read_soc(char , bool ); unsigned short read_soc(char,bool ack); unsigned short read(char reg); -void write(char reg, unsigned short data); +int write(char reg, unsigned short data); void reset(); //not used void quickStart(); //not used void disable_sleep();