Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q
Fork of KL25Z_Camera_Test by
Revision 30:6c047af9f0cc, committed 2017-01-11
- Comitter:
- lh14g13
- Date:
- Wed Jan 11 11:18:03 2017 +0000
- Parent:
- 29:b5b31256572b
- Commit message:
- added changes to the motor library
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| motor2.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jan 10 11:24:13 2017 +0000
+++ b/main.cpp Wed Jan 11 11:18:03 2017 +0000
@@ -74,7 +74,7 @@
TFC_LineScanImageReady=0;
// Slow down, adjust PID values and enable differential before corners.
- //handleCornering();
+ handleCornering();
// Run the PID controllers and adjust steering/motor accordingly
PIDController();
@@ -202,7 +202,7 @@
}
*/
- if(false) {
+ if(true) {
//default
//TFC_SetMotorPWM(0.4,0.4);
@@ -401,7 +401,7 @@
sendString("Start/stop seen");
TFC_SetMotorPWM(0.f,0.f);
TFC_HBRIDGE_DISABLE;
- lapTime();
+ //lapTime();
}
// slower++;
@@ -626,7 +626,7 @@
sendString("For lap number: %d Lap Time: %f Avergae time: %f \n\r", lapNo,lapTime,avgTime);
- // OH WHAT UP IT'S DAT BOI!!!!
+
return 0;
}
--- a/motor2.lib Tue Jan 10 11:24:13 2017 +0000 +++ b/motor2.lib Wed Jan 11 11:18:03 2017 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/GDP-4/code/motor2/#96c36a38d83b +http://developer.mbed.org/teams/GDP-4/code/motor2/#98aecf1889ed
