An example PID line following program (half speed)

Dependencies:   m3pi mbed

Fork of m3pi_LineFollower_PID by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
editing00
Date:
Mon Aug 07 10:14:01 2017 +0000
Parent:
1:53b88c06cb52
Commit message:
half speed Line following PID

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 53b88c06cb52 -r 472ced980935 main.cpp
--- a/main.cpp	Mon Aug 07 10:12:07 2017 +0000
+++ b/main.cpp	Mon Aug 07 10:14:01 2017 +0000
@@ -27,7 +27,7 @@
     float previous_pos_of_line = 0.0;
     float derivative,proportional,integral = 0;
     float power;
-    float speed = MAX*0.5;
+    float speed = MAX*0.5; // 센서 간격이 넓고, 개수가 적어서 속도가 작아야 함
     
     while (1) {