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

RemovedSources/WheelEncoder.h.txt

Committer:
hazheng
Date:
2017-04-19
Branch:
Drift
Revision:
87:15fcf7891bf9
Parent:
Hardwares/WheelEncoder.h@ 65:295c222fdf88

File content as of revision 87:15fcf7891bf9:

#if 0

#pragma once

#include <mbed.h>

namespace SW
{
    class Core;    
}

class WheelEncoder
{
public:
    WheelEncoder(SW::Core &core);
    
    ~WheelEncoder();
    
    void Update(float deltaTime);
    
private:    

    void pulseInRRight();
    
    void pulseInRLeft();

    SW::Core& m_core;
    
    InterruptIn m_intRL;
    
    InterruptIn m_intRR;
    
    Timer m_rrightTimer, m_rleftTimer;
    
    float m_rrDuration, m_rlDuration;
};
#endif //if 0