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:
- 57:60e8f00d93c3
- Parent:
- 56:32b1fb074138
- Child:
- 62:3a4a37d3d4a7
diff -r 32b1fb074138 -r 60e8f00d93c3 EPS.cpp
--- a/EPS.cpp Sun Aug 07 07:49:52 2016 +0000
+++ b/EPS.cpp Sun Sep 04 13:08:33 2016 +0000
@@ -522,16 +522,16 @@
for(Iteration=0; Iteration<16; Iteration++){
if(Iteration==14)
- quant_data.voltage_quant[Iteration] = float_to_uint8(0.0,5,actual_data.voltage_actual[Iteration]);//quantiz(tstart,tstep,actual_data.voltage_actual[Iteration]);
+ quant_data.voltage_quant[Iteration] = float_to_uint8(0.0,25,actual_data.voltage_actual[Iteration]);//quantiz(tstart,tstep,actual_data.voltage_actual[Iteration]);
else
- quant_data.voltage_quant[Iteration] = float_to_uint8(0.0,5,actual_data.voltage_actual[Iteration]);//quantiz(vstart,vstep,actual_data.voltage_actual[Iteration]);
+ quant_data.voltage_quant[Iteration] = float_to_uint8(0.0,25,actual_data.voltage_actual[Iteration]);//quantiz(vstart,vstep,actual_data.voltage_actual[Iteration]);
}
for(Iteration=0;Iteration<12;Iteration++){
if(Iteration<8)
- quant_data.current_quant[Iteration] = float_to_uint8(0.0,2,actual_data.current_actual[Iteration]);//quantiz(cstart,cstep,actual_data.current_actual[Iteration]);
+ quant_data.current_quant[Iteration] = float_to_uint8(0.0,3000,actual_data.current_actual[Iteration]);//quantiz(cstart,cstep,actual_data.current_actual[Iteration]);
else
- quant_data.current_quant[Iteration] = float_to_uint8(0.0,2,actual_data.current_actual[Iteration]);//quantiz(tstart_thermistor,tstep_thermistor,actual_data.current_actual[Iteration]);
+ quant_data.current_quant[Iteration] = float_to_uint8(0.0,3000,actual_data.current_actual[Iteration]);//quantiz(tstart_thermistor,tstep_thermistor,actual_data.current_actual[Iteration]);
}
for(Iteration=0;Iteration<2;Iteration++){
@@ -557,7 +557,7 @@
//// printf("\n\r b value %f",quant_data.Bvalue_quant[Iteration]);
//// }
- quant_data.Batt_voltage_quant= float_to_uint8(0,5.0,actual_data.Batt_voltage_actual);
+ quant_data.Batt_voltage_quant= float_to_uint8(0,25.0,actual_data.Batt_voltage_actual);
//?? WHAT DO here
arch_data.Batt_1_temp=quant_data.Batt_temp_quant[0];
