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
Diff: Hardwares/Servo.h
- Revision:
- 45:501b7909139a
- Parent:
- 14:88302da8bff0
- Child:
- 46:a5eb9bd3bb55
diff -r 15de535c4005 -r 501b7909139a Hardwares/Servo.h --- a/Hardwares/Servo.h Wed Mar 29 21:19:27 2017 +0000 +++ b/Hardwares/Servo.h Thu Mar 30 03:50:23 2017 +0000 @@ -12,11 +12,19 @@ #define SERVO_MAX_ANGLE 21.0f -class Servo -{ - -public: - +#ifdef __cplusplus +extern "C" { +#endif + +void servo_init(); + +void servo_set_angle(float angle); + +#ifdef __cplusplus +} +#endif + +/* Servo(SW::Core& core); ~Servo(); @@ -35,4 +43,5 @@ Servo(); -}; \ No newline at end of file +}; +*/ \ No newline at end of file