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: RemovedSources/WheelEncoder.h.txt
- Branch:
- Drift
- Revision:
- 87:15fcf7891bf9
- Parent:
- 65:295c222fdf88
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RemovedSources/WheelEncoder.h.txt Wed Apr 19 04:06:01 2017 +0000 @@ -0,0 +1,37 @@ +#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 \ No newline at end of file