![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: QEI.c
- Revision:
- 189:8a16378724c4
- Parent:
- 183:7e200f4d9b16
- Child:
- 190:289514f730ee
diff -r 4c523cc373cc -r 8a16378724c4 QEI.c --- a/QEI.c Fri Aug 19 14:02:02 2016 +0000 +++ b/QEI.c Mon Aug 22 10:39:08 2016 +0000 @@ -14,7 +14,6 @@ int Pulse_32Point; int Pulse_64Point; int Pulse_16PointD; -int Pulse_16PointDD; int CaunAddPlus =0;//счетчик ипульсов энкодера"+" за такт ВП int CaunAddMin =0;//счетчик ипульсов энкодера"-" за такт ВП @@ -25,7 +24,6 @@ int Buff_64Point [32]; int Buff_16Point [32]; int Buff_16PointD [32]; -int Buff_16PointDD [64]; int Buff_8Point [32]; int Buff_Restored_sin [32]; @@ -67,18 +65,6 @@ Pulse_16PointD -= Buff_1Point[(CountV255-48) & 0xff]; // Buff_16PointD[CountV31] = Pulse_16PointD ; -/* - Pulse_16PointDD += Buff_1Point[CountV255]; - Pulse_16PointDD -= Buff_1Point[(CountV255-16) & 0xff]; // заполнение буфера накопленых приращений за 16 тактов Двойныз - Pulse_16PointDD += Buff_1Point[(CountV255-32) & 0xff]; // - Pulse_16PointDD -= Buff_1Point[(CountV255-48) & 0xff]; // - Pulse_16PointDD += Buff_1Point[(CountV255-64) & 0xff]; - Pulse_16PointDD -= Buff_1Point[(CountV255-80) & 0xff]; // заполнение буфера накопленых приращений за 16 тактов Двойныз - Pulse_16PointDD += Buff_1Point[(CountV255-96) & 0xff]; // - Pulse_16PointDD -= Buff_1Point[(CountV255-112) & 0xff]; - Buff_16PointDD[CountV31] = Pulse_16PointDD ; - Buff_Restored_sin [CountV31]= Buff_16PointDD[ CountV31] - Buff_64Point[CountV31]; -*/ Buff_Restored_sin [CountV31]= Buff_16PointD[CountV31] - Buff_32Point[CountV31];