Code for the car to drive in a figure eight motion
Dependencies: mbed-rtos mbed MODSERIAL mbed-dsp telemetry
Diff: main.cpp
- Revision:
- 20:53f5e6d3e47b
- Parent:
- 19:29b3decea5e2
- Child:
- 23:d8cacd996cce
--- a/main.cpp Fri Mar 20 08:54:51 2015 +0000 +++ b/main.cpp Fri Mar 20 08:58:27 2015 +0000 @@ -20,6 +20,15 @@ float ADCdata [128]; Mutex line_mutex; + +//servo rotations +float straight = 0.00155f; +float hardLeft = 0.0013f; +float slightLeft = 0.00145f; +float hardRight = 0.0018f; +float slightRight = 0.00165f; + + void linecam_thread(void const *args){ while(1){ //line_mutex.lock();