Dmitry Kovalev
/
LG2
fork
Fork of LG by
Diff: QEI.c
- Revision:
- 202:c03b7b128e11
- Parent:
- 197:7a05523bf588
diff -r 76f4123bf22a -r c03b7b128e11 QEI.c --- a/QEI.c Wed Nov 02 14:05:24 2016 +0000 +++ b/QEI.c Fri Nov 18 06:07:37 2016 +0000 @@ -39,7 +39,7 @@ - //LoopOn + ////////////////////////////////////////////////////////////////////////////////////////////// Pulse_8Point += Buff_1Point[CountV255]; Pulse_8Point -= Buff_1Point[(CountV255-8) & 0xff]; // заполнение буфера накопленых приращений за 8 тактов @@ -67,7 +67,8 @@ Buff_16PointD[CountV31] = Pulse_16PointD ; - //LoopOff + // + Buff_Restored_sin [CountV31] = (Buff_16PointD[CountV31]) - Buff_32Point[CountV31]; Buff_Restored_sin2 [CountV31] = (Buff_16Point[CountV31]) - Buff_32Point[CountV31]; if((Buff_Restored_sin [CountV31]) > 0)