SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Revisions of main.cpp

Revision Date Message Actions
87:15fcf7891bf9 2017-04-19 Removed not used source files. File  Diff  Annotate
84:2c22d01e8ae9 2017-04-18 Finished a little doc. need to debug. File  Diff  Annotate
83:b2c7c6f76575 2017-04-18 Clean the code a little bit. File  Diff  Annotate
82:992ba6f31e24 2017-04-18 Finished state switching. File  Diff  Annotate
80:c85cb93713b3 2017-04-18 Transfer to State Machine. File  Diff  Annotate
79:bdbac82c979b 2017-04-18 Finished the basic function of the touch screen. File  Diff  Annotate
78:9f20bf037db6 2017-04-17 added ardu touch files. File  Diff  Annotate
77:1ee12f434a23 2017-04-17 4 sec, not stable File  Diff  Annotate
76:5de2cbe0c271 2017-04-17 5 sec stable version. File  Diff  Annotate
74:2d45b954deb1 2017-04-16 6 sec stable version 3 File  Diff  Annotate
73:1dcf56e9f1d4 2017-04-16 Fixed stable version 2. File  Diff  Annotate
72:b8f2eebc8912 2017-04-16 Drift version (not stable) File  Diff  Annotate
71:5601d2faa61d 2017-04-14 First Stable version. File  Diff  Annotate
70:311d32a596db 2017-04-14 Fixed the camera not centered issue. Reduce the effect of the corner ratio. File  Diff  Annotate
69:34e97694f0ef 2017-04-13 Merge default into origin/default. File  Diff  Annotate
68:b15cab740371 2017-04-13 Cleaned the main.cpp code. File  Diff  Annotate
67:1b5c8add3d01 2017-04-13 Merge. File  Diff  Annotate
66:c9b64f5337cc 2017-04-12 Added rapid stop. File  Diff  Annotate
65:295c222fdf88 2017-04-12 More Adjustment. File  Diff  Annotate
64:43ab429a37e0 2017-04-10 Auto terminate when hit the end of the loop. Commented out all the IMU code, because of the memory space problem. File  Diff  Annotate
63:d9a81b3d69f5 2017-04-09 Finished the code for Accelerometer. File  Diff  Annotate
62:bc5caf59fe39 2017-04-09 Made the IMU working correctly. File  Diff  Annotate
61:bdc31e4fa3c4 2017-04-13 Last angle speed reduction check added. File  Diff  Annotate
58:996effac29b9 2017-04-08 Added cornering speed factor. File  Diff  Annotate
57:0d8a155d511d 2017-04-08 move the image processing to the main thread. Created the debug counter. File  Diff  Annotate
56:7d3395ae022d 2017-04-06 Added debug log function. File  Diff  Annotate
55:d4db9eef4a9d 2017-04-06 Fixed a small bug in prev commit File  Diff  Annotate
54:f1f5648dfacf 2017-04-06 Adjusted the angle. Commented out all USB Server code. File  Diff  Annotate
53:36d9335fec96 2017-04-06 Testing drive parameters.; File  Diff  Annotate
52:078b521c9edf 2017-04-06 Clean the rear differential code. File  Diff  Annotate
51:a8e58fd3e131 2017-04-06 Merged into origin/default File  Diff  Annotate
50:c387c88141fb 2017-04-06 Use smaller image size. File  Diff  Annotate
49:be46291ee6ea 2017-04-06 Merged into origin/default File  Diff  Annotate
48:f76b5e252444 2017-04-05 Increased the camera speed. File  Diff  Annotate
47:a682be9908b9 2017-04-06 Added differential calculations in main. File  Diff  Annotate
46:a5eb9bd3bb55 2017-03-30 Changed more code into pure C style. Finished driving complete circle! Both screen and camera works fine! File  Diff  Annotate
45:501b7909139a 2017-03-30 Turn servo class into pure C code. More classes need to be changed on tomorrow... File  Diff  Annotate
44:15de535c4005 2017-03-29 Made the car move!... File  Diff  Annotate
43:0d1886f4848a 2017-03-27 display live camera view on screen File  Diff  Annotate
41:7b21c5e3599e 2017-03-23 Made the TFT screen working File  Diff  Annotate
40:be98219930e4 2017-03-22 Added code for UTFT screen. Nothing displayed on screen. Maybe screen is broken? File  Diff  Annotate
37:7074a6118d03 2017-03-14 Added support for OV7670. File  Diff  Annotate
36:7e747e19f660 2017-03-14 Removed trash codes. Made it easier to switch different camera. File  Diff  Annotate
32:5badeff825dc 2017-03-02 Successfully get the first picture from the camera and displayed on the computer screen. File  Diff  Annotate
29:f87d8790f57d 2017-03-01 Added test code for ArduCam. Cam is not working yet. File  Diff  Annotate
28:271fc8445e89 2017-02-27 Added basic framework for the ArduCAM. Started to change the hardware interface code into Pure C style, so that the call process will be faster and program size could be smaller. File  Diff  Annotate
26:5814404856e2 2017-02-21 Finished camera initialization, and some test code for camera. File  Diff  Annotate
25:6f63053cee81 2017-02-21 Added formal version of OV7725RegBuf class. File  Diff  Annotate
21:60377d6f1cc2 2017-02-14 Fixed some bugs about the wheel encoder. File  Diff  Annotate
20:4cdbd1ae4ead 2017-02-14 Merged origin/default to default. File  Diff  Annotate
18:bf6c5f8281eb 2017-02-11 Successfully built connection with PC! (Note: Serial Class is pretty bugy, in order to avoid them, SWUSBServer became much heavier) File  Diff  Annotate
16:66c7a09e71ee 2017-02-10 Added delta time. File  Diff  Annotate
15:eb6a274b3dfb 2017-02-14 Finished wheelEncoder class. File  Diff  Annotate
14:88302da8bff0 2017-02-09 Small servo tweaks File  Diff  Annotate
13:7dcb1642ef99 2017-02-08 Finished reading SCCB from camera. File  Diff  Annotate
11:676ea42afd56 2017-02-07 Finished Core, and Servo classes. File  Diff  Annotate
10:fedb5786a109 2017-02-07 Added pin assignment for servo, and changed its pin from PTE20 to PTB0 for easier access. File  Diff  Annotate
8:92f6baeea027 2017-02-03 Finished code for Motor class. File  Diff  Annotate
6:0682e1c90119 2017-02-03 Solved Merge Conflicts. File  Diff  Annotate
5:577b582e4fe9 2017-02-03 Added USB Server. (Not the best solution.) File  Diff  Annotate