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

Committer:
hazheng
Date:
Thu Mar 30 22:34:20 2017 +0000
Revision:
46:a5eb9bd3bb55
Parent:
45:501b7909139a
Child:
91:7b1910ca3ad6
Changed more code into pure C style. Finished driving complete circle! Both screen and camera works fine!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bobymicjohn 11:676ea42afd56 1 #pragma once
Bobymicjohn 11:676ea42afd56 2
Bobymicjohn 11:676ea42afd56 3 #include <mbed.h>
Bobymicjohn 11:676ea42afd56 4
Bobymicjohn 11:676ea42afd56 5 #define SERVO_RT 1
Bobymicjohn 11:676ea42afd56 6 #define SERVO_LF -1
Bobymicjohn 11:676ea42afd56 7
Bobymicjohn 14:88302da8bff0 8 #define SERVO_MAX_ANGLE 21.0f
Bobymicjohn 11:676ea42afd56 9
hazheng 45:501b7909139a 10 #ifdef __cplusplus
hazheng 45:501b7909139a 11 extern "C" {
hazheng 45:501b7909139a 12 #endif
hazheng 45:501b7909139a 13
hazheng 45:501b7909139a 14 void servo_init();
hazheng 45:501b7909139a 15
hazheng 45:501b7909139a 16 void servo_set_angle(float angle);
hazheng 45:501b7909139a 17
hazheng 45:501b7909139a 18 #ifdef __cplusplus
hazheng 45:501b7909139a 19 }
hazheng 45:501b7909139a 20 #endif