Lu-Hsuan Chen
/
autocar_3sensor_mbed
An auto car with 3 IR sensors.
Diff: main.cpp
- Revision:
- 19:d06f5a3ed0bc
- Parent:
- 18:d7509436e9ef
- Child:
- 20:cc12f841a06e
diff -r d7509436e9ef -r d06f5a3ed0bc main.cpp --- a/main.cpp Wed Jul 18 12:38:54 2018 +0000 +++ b/main.cpp Wed Jul 18 14:18:39 2018 +0000 @@ -25,8 +25,8 @@ Ping ultrasonic(D13); // PID control params -float values = 0; -float Kp = 0.2, Ki = 0.0001, Kd = 1; +int values = 0; +float Kp = 1, Ki = 0, Kd = 0; // main() runs in its own thread in the OS int main()