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:
45:501b7909139a
Parent:
14:88302da8bff0
Child:
46:a5eb9bd3bb55

File content as of revision 45:501b7909139a:

#pragma once

#include <mbed.h>

namespace SW
{
    class Core;
}

#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

/*
    Servo(SW::Core& core);
    
    ~Servo();
    
    void Update(float deltaTime);
    
    void setAngle(float angle);
    
private:

    SW::Core& m_core;
    
    float m_pulseWidth;
    
    PwmOut m_pwm;
    
    Servo();

};
*/