Dmitry Kovalev
/
LGstaandart
forkd
Fork of LG2 by
Diff: QEI.c
- Revision:
- 107:4d178bcc9d8a
- Parent:
- 106:250ddd8629c6
- Child:
- 108:030cdde08314
diff -r 250ddd8629c6 -r 4d178bcc9d8a QEI.c --- a/QEI.c Fri Apr 01 10:05:35 2016 +0000 +++ b/QEI.c Fri Apr 01 16:13:55 2016 +0000 @@ -84,15 +84,7 @@ Buff_16PointD[CountV31] = /*(unsigned int)*/ (Pulse_16PointD /*+ 0xffff*/); Buff_Restored_sin [CountV31]= /*(unsigned int)*/( Buff_16PointD [ CountV31] /*+ 65536 */ - Buff_32Point[CountV31] ); - /* - if(Buff_16Point[CountV255]<0) - { - Gyro.Cnt_Mns-=Buff_16Point[CountV255]; - } - else - { - Gyro.Cnt_Pls+=Buff_16Point[CountV255]; - }*/ + if(Buff_Restored_sin [CountV31] > 0)Temp_F_ras += Buff_Restored_sin [CountV31]; else Temp_F_ras -= Buff_Restored_sin [CountV31]; // расчет амплитуды