car using PID from centre line
Dependencies: FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q
Fork of KL25Z_Camera_Test by
Diff: main.cpp
- Revision:
- 42:4395ede5781e
- Parent:
- 41:d74878640739
- Child:
- 44:1884ffec9a57
diff -r d74878640739 -r 4395ede5781e main.cpp --- a/main.cpp Wed Jan 25 15:46:50 2017 +0000 +++ b/main.cpp Sun Jan 29 13:16:06 2017 +0000 @@ -351,7 +351,7 @@ } } - + // stops the motors from going into reverse and from being set to a value higher than 1. if(left_motor_pid.output > 1.0f) { left_motor_pid.output = 1.0f; }