Facking kut filter werkt EINDELIJK !311!!111!!1!!!!!!!!!!!!!!!!!!!
Dependencies: HIDScope MODSERIAL Matrix QEI biquadFilter mbed
Fork of Turning_Motor_V6 by
Revision 6:056ad27636ff, committed 2018-10-26
- Comitter:
- ThomBMT
- Date:
- Fri Oct 26 06:56:18 2018 +0000
- Parent:
- 5:312186a0604d
- Child:
- 7:c5c648898881
- Commit message:
- Working version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); }