![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Facking kut filter werkt EINDELIJK !311!!111!!1!!!!!!!!!!!!!!!!!!!
Dependencies: HIDScope MODSERIAL Matrix QEI biquadFilter mbed
Fork of Filter by
Diff: main.cpp
- Revision:
- 6:056ad27636ff
- Parent:
- 5:312186a0604d
- Child:
- 7:c5c648898881
--- a/main.cpp Wed Oct 24 10:30:47 2018 +0000 +++ b/main.cpp Fri Oct 26 06:56:18 2018 +0000 @@ -51,8 +51,8 @@ counts1 = Encoder1.getPulses(); counts2 = Encoder2.getPulses(); // Hier gaat iets fout waardoor het 0 wordt!!! - float rad_m1 = ((2*pi)/32.0)* (float)counts1; - float rad_m2 = ((2*pi)/32.0)* (float)counts2; + float rad_m1 = ((2.0*pi)/32.0)* (float)counts1; + float rad_m2 = ((2.0*pi)/32.0)* (float)counts2; // pc.printf("%f & %f ....\n",rad_m1, rad_m2); }