I2C BAE standalone hardware testing
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of ACS_Flowchart_BAE_1 by
Diff: EPS.h
- Revision:
- 2:c823d84b4cb0
- Parent:
- 1:446a959e36ce
- Child:
- 3:07e15677a75c
--- a/EPS.h Thu Dec 24 20:01:31 2015 +0000 +++ b/EPS.h Fri Dec 25 15:25:44 2015 +0000 @@ -1,6 +1,5 @@ #include <mbed.h> - #define tstart -40 #define tstep 8 #define tstep_thermistor 8 //verify everything!! @@ -9,8 +8,17 @@ #define vstep 0.84667 #define cstart 0.0691 #define cstep 0.09133 +#define vcell_start 5 //check +#define vcell_step 0.0133 //check +#define soc_start 0 +#define soc_step 0.3921 +#define crate_start 0 //check +#define crate_step 1 //check +#define AngularSpeed_start 0 //check +#define AngularSpeed_step 0.1 //check #define rsens 0.095 + #define m_ADDR (0x6C) //slave address //I2C register addresses @@ -41,6 +49,10 @@ void HK_main(); int quantiz(float start,float step,float x); +void saveMin(); +void saveMax(); +void minMaxHkData(); + void FCTN_BATTERYGAUGE_INIT(); void FCTN_BATTERYGAUGE_MAIN(float*Battery_parameters); @@ -68,6 +80,9 @@ bool alerting(); void vResetThresholdSet(); +void FCTN_BATTTEMP_INIT(); +void FCTN_BATT_TEMP_SENSOR_MAIN(); + typedef struct BAE_HK_actual{ float voltage_actual[16]; float current_actual[12];