car using PID from centre line
Dependencies: FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q
Fork of KL25Z_Camera_Test by
Revision 54:78854efeb1df, committed 2017-04-28
- Comitter:
- FatCookies
- Date:
- Fri Apr 28 07:58:19 2017 +0000
- Parent:
- 53:f25846758cd4
- Commit message:
- small param changes;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Apr 28 07:55:43 2017 +0000 +++ b/main.cpp Fri Apr 28 07:58:19 2017 +0000 @@ -76,7 +76,7 @@ // Check if car is at the stop line - if(loop % 10 == 0) { + /*if(loop % 10 == 0) { accc = checkAcc(); } @@ -85,6 +85,7 @@ } else { //sendString("up %f", accc); } + */
--- a/main.h Fri Apr 28 07:55:43 2017 +0000 +++ b/main.h Fri Apr 28 07:58:19 2017 +0000 @@ -132,8 +132,8 @@ //Accelerometer: float checkAcc(); float accTheshold=0.4; -bool torque = 1; - float man_tuner = 1.0f ; +bool torque = false; + float man_tuner = 0.6f ; #if defined (TARGET_KL25Z) || defined (TARGET_KL46Z) PinName const SDA = PTE25; PinName const SCL = PTE24;