![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
for learning
Diff: main.cpp
- Revision:
- 229:c13dac18dee3
- Parent:
- 228:83e3a91aa1c6
- Child:
- 230:eff425844edf
diff -r 83e3a91aa1c6 -r c13dac18dee3 main.cpp --- a/main.cpp Wed Dec 30 04:37:41 2020 +0000 +++ b/main.cpp Wed Dec 30 04:54:52 2020 +0000 @@ -2357,12 +2357,12 @@ case MODE_VALVE_POSITION_CONTROL: { if (OPERATING_MODE == 5) { //SW Valve ////For Test LIMC////////////////////////////////////////// -// VALVE_POS_CONTROL(valve_pos.ref); - for(int i=0; i<9; i++){ - valve_ref_pos_buffer[i] = valve_ref_pos_buffer[i+1]; - } - valve_ref_pos_buffer[9] = valve_pos.ref; - VALVE_POS_CONTROL(valve_ref_pos_buffer[0]); + VALVE_POS_CONTROL(valve_pos.ref); +// for(int i=0; i<9; i++){ +// valve_ref_pos_buffer[i] = valve_ref_pos_buffer[i+1]; +// } +// valve_ref_pos_buffer[9] = valve_pos.ref; +// VALVE_POS_CONTROL(valve_ref_pos_buffer[0]); //////////////////////////////////////////////////////////// V_out = Vout.ref;