Library with P, PI and PID controller

Dependents:   buttoncontrol includeair includeair Oudverslag

Revision:
9:2d57152425d1
Parent:
8:3b077fc3d1ec
Child:
10:37bdb3e5f03a
--- a/controlandadjust.cpp	Thu Oct 08 13:14:29 2015 +0000
+++ b/controlandadjust.cpp	Thu Oct 08 14:04:20 2015 +0000
@@ -109,6 +109,6 @@
 
 void controlandadjust::STOP()
 {
-    motor1_speed.write(speed1);
-    motor2_speed.write(speed2);
+    motor1_speed.write(0);
+    motor2_speed.write(0);
 }
\ No newline at end of file