123
Fork of LG by
Diff: QEI.c
- Revision:
- 86:398da56ef751
- Parent:
- 45:cbc955aecebe
- Child:
- 87:7e575d26d6d0
diff -r 0466ee8cdfc8 -r 398da56ef751 QEI.c --- a/QEI.c Wed Mar 23 11:10:55 2016 +0000 +++ b/QEI.c Thu Mar 24 08:20:43 2016 +0000 @@ -1,35 +1,26 @@ #include "Global.h" -int Pulse_midl = 0; -int PulseHalf = 0; -int CuruAngle = 0; + + +int CuruAngle ; + int Dif_QEI; int FFF=0;//для заплатки -int Pulse_8Point = 0; -int Pulse_16Point = 0; -int Pulse_32Point = 0; -int Pulse_16PointD = 0; +int Pulse_8Point; +int Pulse_16Point; +int Pulse_32Point; +int Pulse_16PointD; unsigned int Iras=0,Temp_F_ras=0; int yy = 0; -/* -unsigned int Buff_32Point [256]; -unsigned int Buff_16Point [256]; -unsigned int Buff_16PointD [256]; -unsigned int Buff_8Point [256]; -unsigned int Buff_1Point [256]; -unsigned int Buff_Restored_sin [256]; - -*/ - -int Buff_32Point [32]; // давай сделаем буфера поменьше +int Buff_32Point [32]; int Buff_16Point [32]; int Buff_16PointD [32]; int Buff_8Point [32]; @@ -38,7 +29,7 @@ -int unsigned Cur_QEI = 0, Last_QEI=0; +int unsigned Cur_QEI, Last_QEI; @@ -47,6 +38,8 @@ // ДАВАЙ попробуем сделать буфера в целых (знаковы) + + void D_QEI_Int(void) {