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

Hardwares/Servo.h

Committer:
hazheng
Date:
2017-03-30
Revision:
46:a5eb9bd3bb55
Parent:
45:501b7909139a
Child:
91:7b1910ca3ad6

File content as of revision 46:a5eb9bd3bb55:

#pragma once

#include <mbed.h>

#define SERVO_RT 1
#define SERVO_LF -1

#define SERVO_MAX_ANGLE 21.0f

#ifdef __cplusplus
extern "C" {
#endif

void servo_init();

void servo_set_angle(float angle);

#ifdef __cplusplus
}
#endif