Project of Biorobotics
Dependencies: HIDScope MODSERIAL QEI mbed biquadFilter
Fork of TutorialPES by
Diff: main.cpp
- Revision:
- 6:056ad27636ff
- Parent:
- 5:312186a0604d
- Child:
- 7:439940ae1197
--- 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); }