An example PID line following program (half speed)
Fork of m3pi_LineFollower_PID by
Diff: main.cpp
- Revision:
- 2:472ced980935
- Parent:
- 1:53b88c06cb52
--- 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) {