Dmitry Kovalev
/
LGstaandart
forkd
Fork of LG2 by
Diff: QEI.c
- Revision:
- 214:4c70e452c491
- Parent:
- 211:ac8251b067d2
--- a/QEI.c Wed Jul 26 13:24:39 2017 +0000 +++ b/QEI.c Wed Aug 16 09:00:25 2017 +0000 @@ -87,9 +87,19 @@ Pulse_16PointD -= Buff_1Point[(CountV255-48) & 0xff]; // Buff_16PointD[CountV31] = Pulse_16PointD ; + + + + + + + + + + Buff_Restored_sin [CountV31] = (Buff_16Point[CountV31])*2 - Buff_32Point[CountV31]; - if((Buff_Restored_sin [CountV31]) > 0) CaunAddPlus += Buff_Restored_sin [CountV31]; // счетчик положительных импульсов + if((Buff_Restored_sin [CountV31]) > 0) CaunAddPlus += Buff_Restored_sin [CountV31]; // счетчик положительных импульсов else CaunAddMin -= Buff_Restored_sin [CountV31]; //счетчик отрицательных импульсов // расчет амплитуды