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 QM_BAE_review_1 by
Diff: EPS.cpp
- Revision:
- 64:241406992336
- Parent:
- 63:55d32e7dcad7
- Child:
- 65:d1b12729fcdc
--- a/EPS.cpp Fri Oct 28 11:47:20 2016 +0000 +++ b/EPS.cpp Fri Oct 28 17:50:49 2016 +0000 @@ -483,10 +483,11 @@ s3=SelectLineb3=SelectLinea3; //// printf("\n\r %d %d %d %d", s0,s1,s2,s3); + wait_ms(1); } for(Iteration=0; Iteration<16; Iteration++) { - if(Iteration==6) //EPS 3.0 in EPS 2.1 it was 14th element + if(Iteration==1) //EPS 3.0 in EPS 2.1 it was 14th element 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*62/11; @@ -527,7 +528,7 @@ //quantizing data //changing the algo for(Iteration=0; Iteration<16; Iteration++){ - if(Iteration==14) + if(Iteration==1) 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,25,actual_data.voltage_actual[Iteration]);//quantiz(vstart,vstep,actual_data.voltage_actual[Iteration]);