Biorobotics / Mbed 2 deprecated P_controler

Dependencies:   QEI mbed

Revision:
3:b9e2c7d52953
Parent:
2:5ec7af981b32
Child:
4:1b4885298ade
--- a/main.cpp	Wed Oct 14 12:34:25 2015 +0000
+++ b/main.cpp	Wed Oct 14 12:47:44 2015 +0000
@@ -23,7 +23,7 @@
 // calculating pulses to rotations in degree.
 const double pulses_per_revolution = 4200 ;//8400 counts is aangegeven op de motor for x4.  10 - 30 counts oveshoot. for moter 1(tape)! Motor 2 almost the same(nice)
 const double resolution = pulses_per_revolution / 360;
-double Rotation = 2; // rotation in degree
+double Rotation = -2; // rotation in degree
 double movement = Rotation * 360 * resolution; // times 360 to make Rotations degree.
 
 // defining flags