eBike / Mbed 2 deprecated ENCODER_TEST3_peddep

Dependencies:   mbed PID mbed-rtos

Revision:
1:71457a2df34a
Parent:
0:8a660654d511
Child:
2:9d0e816d6483
--- a/main.cpp	Sat Apr 20 10:01:22 2019 +0000
+++ b/main.cpp	Mon Apr 22 13:10:42 2019 +0000
@@ -60,7 +60,7 @@
         a = 1.0f;
         b = 0.5f;
         beta = 0.0f;
-        R=sqrt(pow(a,2) * pow(sin(beta + phi),2) + pow(b,2) * pow(cos(beta + phi),2));
+        R=sqrt(pow(a,2) * pow(sin(beta + phi),2) + pow(b,2) * pow(cos(beta + phi),2)); // Torque in function of the Elipse parameters
         
         linkspedal.setTorque(R*P_Factor);
         rechtspedal.setTorque(R*P_Factor);