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 BAE_CODE_MARCH_2017 by
Diff: EPS.cpp
- Revision:
- 56:32b1fb074138
- Parent:
- 53:459b71b1861c
- Child:
- 57:60e8f00d93c3
--- a/EPS.cpp Sat Aug 06 19:05:29 2016 +0000
+++ b/EPS.cpp Sun Aug 07 07:49:52 2016 +0000
@@ -484,14 +484,19 @@
for(Iteration=0; Iteration<16; Iteration++)
{
if(Iteration==14)
- actual_data.voltage_actual[Iteration]= (-90.7*3.3*actual_data.voltage_actual[Iteration])+190.1543;
+ actual_data.voltage_actual[Iteration]= (-90.7*3.3*actual_data.voltage_actual[Iteration])+190.1543;
else
- actual_data.voltage_actual[Iteration]= actual_data.voltage_actual[Iteration]*3.3*5.63;
+ actual_data.voltage_actual[Iteration]= actual_data.voltage_actual[Iteration]*3.3*62/11;
+
+ printf("Voltage[%d] %f\r\n",Iteration,actual_data.voltage_actual[Iteration]);
}
for(Iteration=0;Iteration<12;Iteration++){
if(Iteration<8)
+ {
actual_data.current_actual[Iteration]= actual_data.current_actual[Iteration]*3.3/(50*rsens);
+
+ }
else
actual_data.current_actual[Iteration]=actual_data.current_actual[Iteration]*3.3;
int resistance;
@@ -505,6 +510,8 @@
actual_data.current_actual[Iteration]=3365.4/log(7.60573*resistance);
}
+
+ printf("Current[%d] %f\r\n",Iteration,actual_data.current_actual[Iteration]);
}
//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;
