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
Hardwares/WheelEncoder.h
- Committer:
- hazheng
- Date:
- 2017-04-12
- Revision:
- 65:295c222fdf88
- Parent:
- 15:eb6a274b3dfb
File content as of revision 65:295c222fdf88:
#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